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

Summary: Patch for: [dark] description text area for inspect results is not readable
Product: java Reporter: markiewb
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH_AVAILABLE
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the issue and the patch in action
Proposed patch

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