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 256873 - Go To dialog match highlighting using Bold Font does not work
Summary: Go To dialog match highlighting using Bold Font does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-30 15:03 UTC by matthies
Modified: 2016-06-22 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Highlighting set to use bold font (11.61 KB, image/png)
2015-11-30 15:03 UTC, matthies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matthies 2015-11-30 15:03:47 UTC
Created attachment 157561 [details]
Highlighting set to use bold font

When Go To dialog match highlighting is configured to use bold font, the highlighting doesn't work, there is no bolding. This may be due to the font I use (Lucida Console). Bolding however works with the same font in the editor and in the code completion popup, for example.
Comment 1 Tomas Zezula 2016-06-22 10:10:10 UTC
May be fixed as I've replaced the custom NetBeans HtmlRenderer by a standard
JLabel due to other problems, see issue #256872.
However bold font depends on system. How it interprets BOLD fonts, if there is
a BOLD version of a font used by JList. The Go To Panel just marks the matched part as bold using <b>%s</b> pattern in JLabel, for example:

<html><nobr><b>C</b>opy<b>O</b>n<b>W</b>rite<b>A</b>rray<b>L</b>ist</nobr>

If it will not work even with a standard JLabel I cannot do more.