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.
jdk-1.5/ocean/gtk (gnome 2.6) linux daily 12 aug 2004 1. select some node in a tree in some window 2! click in some other window. the selected node in the original window is no longer shown when the original window loses focus. this is not a trivial problem because slide-in windows do not have focus when they are slid in. thus, you can not see what the selected node is unless you click inside the window, possibly changing the selection. clicking on the titlebar doesn't help because it doesn't put focus inside the window. in general, it would be nice to see the selection in unfocused windows, anyway. how about showing selected nodes in unfocused windows in the usual selected/unfocused color? if this is already the case for other L&F's, it needs to be fixed for 'ocean' as well.
reproducible on Linux RH9 / Gnome / JDK 1.5.0 (rc) / Metal L&F similar issue 48543
I reproduced also on windows, passing to Standa, further info for him: 1) error is probably that on Metal LF under jdk 1.5, selection background for unfocused tree item is painted using the same color as overall tree background, which results in invisible selection 2) classes to play with lay in openide/explorer package, namely TreeView class. 3) to run Netbeans with Metal LF, specify command line parameter -ui javax.swing.plaf.metal.MetalLookAndFeel
Created attachment 17750 [details] Bug fix
dafe, pls review my fix, thanx.
Yes, patch is OK. Please go ahead and commit the fix into main trunk.
fixed in org.netbeans.swing.plaf.metal.MetalLFCustoms
verified