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 238628 - Patch for: [dark] description text area for inspect results is not readable
Summary: Patch for: [dark] description text area for inspect results is not readable
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2013-11-20 18:11 UTC by markiewb
Modified: 2013-11-25 10:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue and the patch in action (201.52 KB, image/png)
2013-11-20 18:11 UTC, markiewb
Details
Proposed patch (2.92 KB, patch)
2013-11-20 18:15 UTC, markiewb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-11-20 18:11:57 UTC
Created attachment 142420 [details]
Shows the issue and the patch in action

* open a java project
* invoke "Source|Inspect" with all analysers

ACTUAL: description in inspection result view is black on dark background - see screenshot
EXPECTED: description in inspection result view is LAF-aware

Dark metal

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\7.4
Comment 1 markiewb 2013-11-20 18:15:24 UTC
Created attachment 142421 [details]
Proposed patch

I like to propose this patch to solve the issue.

The patch changes the type of the descriptionpanel from JTextPane to JEditorPane and sets the client property HONOR_DISPLAY_PROPERTIES.

Please review and commit. See the already attached screenshot.
Comment 2 Svata Dedic 2013-11-25 10:17:07 UTC
Yes, this JEditorPane can be seen elsewhere (i.e. java hint description component in options).

Integrated as rev. http://hg.netbeans.org/jet-main/rev/00bf2efcd7b5