This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 115493 - Editor has repainting problems
Summary: Editor has repainting problems
Status: RESOLVED DUPLICATE of bug 115638
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-13 21:51 UTC by tkellerer
Modified: 2007-11-05 13:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing duplicated line after pressing ENTER (25.76 KB, image/png)
2007-09-13 21:52 UTC, tkellerer
Details
Screenshot showing how the duplicated line changes when moving the cursor down (17.69 KB, image/png)
2007-09-13 21:52 UTC, tkellerer
Details
Cursor moved down again (14.01 KB, image/png)
2007-09-13 21:53 UTC, tkellerer
Details
Zipped IDE Log file (9.22 KB, application/octet-stream)
2007-09-15 10:19 UTC, tkellerer
Details
Source file before moving cursor to the right (3.66 KB, image/png)
2007-09-15 10:25 UTC, tkellerer
Details
Display after moving cursor to the right (3.67 KB, image/png)
2007-09-15 10:25 UTC, tkellerer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2007-09-13 21:51:28 UTC
Since some days, the editor in the daily builds has repainting problems. This usually starts when the current file
contains some errors, but I have seen it happening without any errors as well. 

Sometimes it's not line duplication (as in the attached screenshots) but the end of the file is simply not displayed.
One needs to close and re-open the file in order to get a decent display. The longer NB is running, the more this starts
happening. I need to restart NB in order to be able to work with it again. 
Sometimes it only happens when a long line is scrolled horizontally, but that is less frequent.

Apparently the editor is also used in the single line editor when editing e.g. the property "Text" of a JLabel using
"Custom code". Sometimes the line is completely empty, and when I move the cursor in the line the characters start
appearing.

Windows XP, JDK 1.6.0_02 and JDK 1.6.0_01
Comment 1 tkellerer 2007-09-13 21:52:05 UTC
Created attachment 48771 [details]
Screenshot showing duplicated line after pressing ENTER
Comment 2 tkellerer 2007-09-13 21:52:37 UTC
Created attachment 48772 [details]
Screenshot showing how the duplicated line changes when moving the cursor down
Comment 3 tkellerer 2007-09-13 21:53:08 UTC
Created attachment 48773 [details]
Cursor moved down again
Comment 4 Vitezslav Stejskal 2007-09-14 07:33:48 UTC
There used to be some problems that were already fixed - most importantly issue #114942 and issue #114869. However,
there is still issue #115484, which IMO is the cause of lines duplicating as you described it. When it happens again,
could you please shutdown the IDE and attach the <userdir>/var/log/messages.log file here? Thank you
Comment 5 tkellerer 2007-09-15 10:18:05 UTC
I had another repainting problem with dev-build 200709140000-javase.

This time is was not when scrolling vertically, but horizontally. A single character would jump back and forth when
going through the line using cursor left/right. 

IDE Log file is attached.
Comment 6 tkellerer 2007-09-15 10:19:20 UTC
Created attachment 48881 [details]
Zipped IDE Log file
Comment 7 tkellerer 2007-09-15 10:23:53 UTC
The problem was still there after restarting the IDE.
I am attaching two screenshots showing this. 
I can supply the source file as well if needed.
Comment 8 tkellerer 2007-09-15 10:25:02 UTC
Created attachment 48882 [details]
Source file before moving cursor to the right
Comment 9 tkellerer 2007-09-15 10:25:34 UTC
Created attachment 48883 [details]
Display after moving cursor to the right
Comment 10 tkellerer 2007-09-15 10:27:23 UTC
Just noticed, between the start and the 'A' was a tab character. After removing the tab, the display was fine.
Seems to be related to having tab characters in the file.
Comment 11 Vitezslav Stejskal 2007-09-17 09:30:18 UTC
Ah, the problem with tabs is reported as issue #115638. Once I get to know more about the problem, I'll close this one
as duplicate (if it is duplicate). The other issues should be already fixed, please try the most recent builds. Thanks.
Comment 12 Vitezslav Stejskal 2007-09-17 13:23:58 UTC
Tabs should already be painted ok.

*** This issue has been marked as a duplicate of 115638 ***