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 60618

Summary: Separators aren't visible in menus if you run JDK6.0 and GTK
Product: platform Reporter: Marian Mirilovic <mmirilovic>
Component: Window SystemAssignee: David Simonek <dsimonek>
Status: VERIFIED WONTFIX    
Severity: blocker CC: mkrauskopf
Priority: P3 Keywords: GTK
Version: 5.x   
Hardware: PC   
OS: Linux   
URL: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6346746
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot of the menu JDK 5.0 GTK
screenshot of the menu JDK 6.0 GTK
working patch

Description Marian Mirilovic 2005-06-29 14:38:36 UTC
NB.dev(200506281800), JDK6.0 (b42) , -J-DuseGtk=true

See attached screenshots :
- JDK6.0 + useGtk => no separators
- JDK6.0  => separators are visible
- JDK5.0 + useGtk => separators are visible
Comment 1 Marian Mirilovic 2005-06-29 14:39:29 UTC
Created attachment 22950 [details]
screenshot of the menu JDK 5.0 GTK
Comment 2 Marian Mirilovic 2005-06-29 14:39:55 UTC
Created attachment 22951 [details]
screenshot of the menu JDK 6.0 GTK
Comment 3 Martin Krauskopf 2005-11-06 17:04:30 UTC
One of the most visible GTK problem (and 6.0 approaching beta). So far it seems
like regression in 6.0-ea - I haven't found any yet. JMenu.addSeparator() and/or
JPopupMenu.addSeparator() doesn't work (unrelated to NB).
However may be workarounded by replacing "addSeparator()" with "add(new
JSeparator())".

Also maybe there are some supposed differences between add(new JSeparator()) and
addSeparator() which I'm not aware of. If yes, please enlighten me. Otherwise
issue against JDK should be filed. Should be solved for NB 5.0, I believe.
Attaching working patch.
Comment 4 Martin Krauskopf 2005-11-06 17:05:10 UTC
Created attachment 26662 [details]
working patch
Comment 5 Martin Krauskopf 2005-11-07 15:31:41 UTC
Filled JDK bug 6346746. But as it can be easily workaround (the attached patch),
leaving issue open.
Comment 6 Martin Krauskopf 2005-11-08 10:52:30 UTC
JDK bug was evaluated and will be delivered in Mustang. So I'm suggesting
WONTFIX. For those who can't live with it could temporarily workaround with the
attached patch as I did ;)
Comment 7 David Simonek 2005-11-08 11:34:28 UTC
Thanks Martin for your work, I agree with your conclusion.
Comment 8 Marian Mirilovic 2005-11-15 08:59:31 UTC
verified JDK bug
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6346746