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 48951 - selection for unfocused windows is not shown
Summary: selection for unfocused windows is not shown
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: L&F
Depends on:
Blocks:
 
Reported: 2004-09-13 18:25 UTC by athompson
Modified: 2008-12-22 20:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Bug fix (775 bytes, patch)
2004-09-20 11:52 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2004-09-13 18:25:33 UTC
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.
Comment 1 Marian Mirilovic 2004-09-13 20:51:35 UTC
reproducible on Linux RH9 / Gnome / JDK 1.5.0 (rc) / Metal L&F

similar issue 48543
Comment 2 David Simonek 2004-09-17 11:26:43 UTC
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
Comment 3 Stanislav Aubrecht 2004-09-20 11:52:56 UTC
Created attachment 17750 [details]
Bug fix
Comment 4 Stanislav Aubrecht 2004-09-20 11:54:03 UTC
dafe, pls review my fix, thanx.
Comment 5 David Simonek 2004-09-21 14:44:31 UTC
Yes, patch is OK. Please go ahead and commit the fix into main trunk.
Comment 6 Stanislav Aubrecht 2004-09-22 15:02:23 UTC
fixed in org.netbeans.swing.plaf.metal.MetalLFCustoms
Comment 7 Zdenek Konecny 2005-10-11 16:15:37 UTC
verified