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.
[daily build #200508231800] Using Windows Classic L&F. 1.Open cvs project 2.Modify some source of the project 3.Select the node of modified file in Projects View It is not possible to read the node name because BG and FG colors are related - see attached screenshot.
Created attachment 24174 [details] Screenshot attached...
I think it's Node's HTML display name renderer bug. It should handle such situations under all L&Fs.
Fix is to add a call to HtmlLabelUI.ensureContrastingColor() into HtmlRenderer.renderHtml(), in the code that converts HTML color definitions into Color objects. Pass the foreground and background colors, and it will return a foreground color that will be readable no matter what. HtmlLabelUI does this now for plain strings, but not for HTML strings with embedded coloring.
assigne to default owner
The renderer actually tries to fix the color but it never gets the background. Working on it.
openide/awt/src/org/openide/awt/HtmlLabelUI.java,v1.6
Verified in dev build #200509211800.
*** Issue 58518 has been marked as a duplicate of this issue. ***