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.
With JDK 6.0 update 1, JMenu.addSeparator() creates a Vista style separator but new JSeparator() creates a simple black line. Global menu in Netbeans seems to use the latter approach, hence it does not look native. The same applies to Matisse generated menus. On the other hand, context menus draws fine. I am not sure this should be fixed in Netbeans, but JDK team may consider this an application issue.
Can we do something with it? "core"...
Dafe, JDK bug ?
reporter, could you please create small test demonstrating the difference between JMenu.addSeparator() and new JSeparator()? We should enter JDK bug and attach the test. Passing to our Vista guru Standa.
Created attachment 41446 [details] Test Case
By the way, there is a difference on Windows XP as well. JMenu.addSeparator() creates a more native looking one.
Created attachment 41450 [details] Screenshot on Vista
Created attachment 41547 [details] Screenshot on XP
*** Issue 101544 has been marked as a duplicate of this issue. ***
fixed in openide-loaders. there's still one outstanding issue with versioning menu - reassigning
forgot to attach commit log: /cvs/openide/loaders/src/org/openide/awt/DynaMenuModel.java,v <-- DynaMenuModel.java new revision: 1.11; previous revision: 1.10
Fixing across VCS modules - using menu.addSeparator() instead of menu.add(new JSeparator()). /shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/actions/annotate/AnnotationBar.java,v <-- AnnotationBar.java new revision: 1.35; previous revision: 1.34 /shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/syncview/SyncTable.java,v <-- SyncTable.java new revision: 1.34; previous revision: 1.33 /shared/data/ccvs/repository/subversion/main/src/org/netbeans/modules/subversion/ui/blame/AnnotationBar.java,v <-- AnnotationBar.java new revision: 1.17; previous revision: 1.16 /shared/data/ccvs/repository/subversion/main/src/org/netbeans/modules/subversion/ui/status/SyncTable.java,v <-- SyncTable.java new revision: 1.19; previous revision: 1.18 /shared/data/ccvs/repository/versioncontrol/src/org/netbeans/modules/versioning/Utils.java,v <-- Utils.java new revision: 1.9; previous revision: 1.8 /shared/data/ccvs/repository/versioncontrol/src/org/netbeans/modules/versioning/VersioningMainMenu.java,v <-- VersioningMainMenu.java new revision: 1.9; previous revision: 1.8 /shared/data/ccvs/repository/versioncontrol/src/org/netbeans/modules/versioning/ProjectMenuItem.java,v <-- ProjectMenuItem.java new revision: 1.12; previous revision: 1.11 /shared/data/ccvs/repository/versioncontrol/src/org/netbeans/modules/versioning/VersioningAnnotationProvider.java,v <-- VersioningAnnotationProvider.java new revision: 1.16; previous revision: 1.15
*** Issue 117045 has been marked as a duplicate of this issue. ***