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 - Wrong background color of a deselected item in Project Window
Summary: Wrong background color of a deselected item in Project Window
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: REGRESSION
: 57562 58137 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-05 12:56 UTC by Jiri Kopsa
Modified: 2008-12-22 20:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project Window screenshot (13.68 KB, image/png)
2005-04-05 12:57 UTC, Jiri Kopsa
Details
Wizard screenshot (49.33 KB, image/png)
2005-04-05 15:19 UTC, Jiri Kopsa
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***