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 - Separators aren't visible in menus if you run JDK6.0 and GTK
Summary: Separators aren't visible in menus if you run JDK6.0 and GTK
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Simonek
URL: http://bugs.sun.com/bugdatabase/view_...
Keywords: GTK
Depends on:
Blocks:
 
Reported: 2005-06-29 14:38 UTC by Marian Mirilovic
Modified: 2008-12-22 21:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of the menu JDK 5.0 GTK (65.20 KB, image/png)
2005-06-29 14:39 UTC, Marian Mirilovic
Details
screenshot of the menu JDK 6.0 GTK (43.84 KB, image/png)
2005-06-29 14:39 UTC, Marian Mirilovic
Details
working patch (1.27 KB, patch)
2005-11-06 17:05 UTC, Martin Krauskopf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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