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 67678

Summary: [GTK] Closed editor window is not repainted when closed
Product: platform Reporter: Martin Krauskopf <mkrauskopf>
Component: Window SystemAssignee: David Simonek <dsimonek>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: lkishalmi
Priority: P3 Keywords: GTK
Version: 5.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: patch

Description Martin Krauskopf 2005-10-27 13:43:58 UTC
JDK 1.6.0-ea-b57. Steps to reproduce:

1) Open one whatever document in the editor
2) Close it

It's still "there", until something force refresh (opening new file, switching
to another app. and back).
Not sure how much we want to support GTK - so leaving only P3. But it is very weird.
Comment 1 Martin Krauskopf 2005-10-27 14:04:55 UTC
The attached patch fix it. Anyway it is still a workaround. I played and
debugged it a little and there seems to be no performance problems at all.
Should I integrate it? (attaching...)
Comment 2 Martin Krauskopf 2005-10-27 14:05:42 UTC
Created attachment 26397 [details]
patch
Comment 3 David Simonek 2005-11-01 15:45:00 UTC
Yes please, do integrate. Your patch is safe, multiple unneeded repaints should
be coalesced by Swing RepaintManager impl anyway, so no performance harm IMHO.
Comment 4 Martin Krauskopf 2005-11-01 15:53:16 UTC
Ok, I'll. But be aware that editorAreaComponent.repaint(); will be called
everytime the user types into the editor. But as I used it it seems that RM
handle it without any problem as you said.
Comment 5 David Simonek 2005-11-01 16:19:57 UTC
Change of mind - we decided to *not* integrate the fix now, as extra repainting
on every keypress is potentially dangerous when double buffering is off or in
case of remote X display, so we should better come with safer fix.
Comment 6 lkishalmi 2006-09-22 14:16:04 UTC
Retested with 6.0 daily and could not reproduce it.
Comment 7 Martin Krauskopf 2006-09-22 14:38:29 UTC
I still can with all other topcomponent docked. latest mustang, latest build.
According to the importance of GKT support for next release changing TM to Dev.
Comment 8 Martin Krauskopf 2006-09-22 14:39:32 UTC
> lkishalmi: you have to CC yourself to be notified about the issue progress.
See my last comment.
Comment 9 David Simonek 2007-07-10 13:43:18 UTC
I can't reproduce anymore on Ubuntu 7.04 with JDK 1.6. Closing as worksforme. Please reopen with details if you can
still reproduce the issue, thank you.