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.
This is because modern UIs often add drop-shadow between the menu and the background, which swing doesn't. When clearlooks theme (on Ubuntu), for example, it is very hard to see the menu edges. When right-clicking low enough in the main window so that the popup menu would be partially outside of it, the popup menu gets the proper drop-shadow it deserves. Might be solved by a simple call to JPopupMenu.setDefaultLightWeightPopupEnabled(false) Product Version = NetBeans IDE 6.9 (Build 201007282301) Operating System = Linux version 2.6.32-24-generic-pae running on i386 Java; VM; Vendor = 1.6.0_21 Runtime = Java HotSpot(TM) Client VM 17.0-b16
Created attachment 101298 [details] LIghtweight menu screencap
Created attachment 101299 [details] Heavyweight popup screencap
A similar bug has been fixed recently in OpenJDK, in fact reverting all menues to be heavyweight by default, but NetBeans still uses lightweight menues. Is it possible to have a followup to this bug?
Here is how it looks for me: http://ladybug-studio.com/~neugens/laf/netbeans/adwaita_based_theme_bug.png Note that this is an official theme (I just modified it slightly). So NetBeans is unusable in Fedora with the default theme.
I mark this as a defect since it's a bug, not a RFE.
Created attachment 131730 [details] Screenshot of how it looks in Fedora 18 Screenshot of how it looks in Fedora 18
Missing borders in dropdown menus is a JDK bug, see #126165 If you need heavy weight menus then what's wrong with adding JPopupMenu.setDefaultLightWeightPopupEnabled(false) into one of your modules or creating a new module with that call?
(In reply to comment #7) > Missing borders in dropdown menus is a JDK bug, see #126165 > > If you need heavy weight menus then what's wrong with adding > JPopupMenu.setDefaultLightWeightPopupEnabled(false) into one of your modules or > creating a new module with that call? Well, there is wrong that for use NetBeans to develop Java code I need to first create a new module (and hence learn how to do that) just to set a flag that should rather be the default. Well, this really seems rather backward to me, ymmv. I'm sure it's a JDK bug, btw, but it effect NetBeans usability, since there is an easy fix, I think NetBeans should provide it, again ymmv.
I know it's not me to decide if this is a bug or not, but you are shipping netbeans with the GTK laf as default, and this doesn't work. If it's a JDK bug, you should at least make sure NetBeans defaults to some other laf. Anyway, I went ahead and created a project to workaround this as it was suggested in a previous comment. It's very sad that the NetBeans developers themselves don't care as much about their own product, btw. https://bitbucket.org/neugens/netbeans-gtk-laf-menu-fix
setLightWeightPopupEnabled(false) has no effect on popup menu borders when using JDK 1.7 and GTK l&f
(In reply to neugens from comment #9) > I know it's not me to decide if this is a bug or not, but you are shipping > netbeans with the GTK laf as default, and this doesn't work. > > If it's a JDK bug, you should at least make sure NetBeans defaults to some > other laf. > > Anyway, I went ahead and created a project to workaround this as it was > suggested in a previous comment. It's very sad that the NetBeans developers > themselves don't care as much about their own product, btw. > > https://bitbucket.org/neugens/netbeans-gtk-laf-menu-fix This "fix" works fine for me on every machine - thanks.