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 225548

Summary: Empty Search Results window has hard-coded white background - causing problem in dark LaF
Product: utilities Reporter: Petr Somol <psomol>
Component: SearchAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED FIXED    
Severity: normal CC: saubrecht
Priority: P3 Keywords: UI
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 225542    
Attachments: Empty Search Results window has hard-coded white background

Description Petr Somol 2013-01-30 15:25:23 UTC
Created attachment 130845 [details]
Empty Search Results window has hard-coded white background

While working on dark look-and-feel it showed up that Search Results window by default displays background in white instead of the LaF specific color. Once any content is displayed in the window, the problem disappears (after Find in Projects is performed to yield any found results).

This is not a functional bug but it notably disrupts the quality of dark look-and-feels.
Comment 1 Jaroslav Havlin 2013-02-06 14:26:50 UTC
(In reply to comment #0)
> Created attachment 130845 [details]
> Empty Search Results window has hard-coded white background
The used color is SystemColor.text.
Please, don't you know which system color or UIManager's color should be used?
Thank you.
Comment 2 Stanislav Aubrecht 2013-02-06 14:31:10 UTC
Try UIManager.getColor("white");
Comment 3 Jaroslav Havlin 2013-02-07 09:12:17 UTC
http://hg.netbeans.org/core-main/rev/a9fecccbd297

I've taken value "Tree.textBackground". It will hopefully look fine for most L&Fs (tested with Windows, Nimbus and Dark Nimbus).

Thanks for reporting and help!
Comment 4 Quality Engineering 2013-02-08 01:42:01 UTC
Integrated into 'main-golden', will be available in build *201302072300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a9fecccbd297
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #225548: Empty Search Results window has white background