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 57476

Summary: Wrong background color of a deselected item in Project Window
Product: platform Reporter: Jiri Kopsa <jkopsa>
Component: Window SystemAssignee: Martin Krauskopf <mkrauskopf>
Status: CLOSED FIXED    
Severity: blocker CC: jchalupa, pnejedly
Priority: P2 Keywords: REGRESSION
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Project Window screenshot
Wizard screenshot

Description Jiri Kopsa 2005-04-05 12:56:55 UTC
[NetBeans 4.1 RC1 - Windows XP]

To reproduce:
1. Select an item in Project Window
2. Move focus to editor (doubleclick on java file)
3. The Project Window node has blue background, but it should be ochre. It
should look the same as a deselected item in Navigator) - see attachment.
Comment 1 Jiri Kopsa 2005-04-05 12:57:25 UTC
Created attachment 21378 [details]
Project Window screenshot
Comment 2 Petr Nejedly 2005-04-05 14:23:55 UTC
Explorer does nothing fancy, just uses the color from plaf, so the plaf is
providing wrong color.
The used key is either "nb.explorer.unfocusedSelBg" or fallbacks to brighter()
of "controlShadow". Works OK for metal.
Comment 3 Jiri Kopsa 2005-04-05 15:19:35 UTC
Created attachment 21387 [details]
Wizard screenshot
Comment 4 Jiri Kopsa 2005-04-05 15:21:04 UTC
The issue really applies to whole platform. Wizards (and probably other
components) have the same trouble (see previous attachment).
Comment 5 Jan Chalupa 2005-04-05 16:10:08 UTC
A recent regression. Build #20050330 has the light beuge bg color (Win XP LaF).
Since build #20050401 the color has changed as shown in the screen shot.

Martin, just guessing... your fix of issue #57145?
Comment 6 Martin Krauskopf 2005-04-05 16:31:01 UTC
Seems you are right Honzo. Started, rebooting to XP...
(Works under linux (Motif/GTK))
Comment 7 Martin Krauskopf 2005-04-05 23:36:00 UTC
Rolling back changes in issue 57145(reopening). I don't know yet how to solve
both issue since HtmlLableUI doesn't have access to all needed information when
its getBackroundFor() method is being called.

Checking in openide/src/org/openide/awt/HtmlLabelUI.java;
new revision: 1.21; previous revision: 1.20
Comment 8 Martin Krauskopf 2005-04-07 08:45:54 UTC
*** Issue 57562 has been marked as a duplicate of this issue. ***
Comment 9 Jiri Kopsa 2005-04-07 08:57:45 UTC
Verified.
Comment 10 Martin Krauskopf 2005-04-07 10:13:55 UTC
Fixed in 4.1

Checking in HtmlLabelUI.java;
new revision: 1.20.2.1; previous revision: 1.20
Comment 11 Petr Nejedly 2005-04-21 02:05:35 UTC
*** Issue 58137 has been marked as a duplicate of this issue. ***