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 271121 - HTML table column display name with sort rank render issue
Summary: HTML table column display name with sort rank render issue
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 8.2
Hardware: PC Linux
: P1 normal with 2 votes (vote)
Assignee: Martin Entlicher
Depends on:
Reported: 2017-07-18 14:30 UTC by tdr
Modified: 2017-08-28 09:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2017-07-18 14:30:21 UTC
When the column display name is an HTML string like "<HTML><font color='#0000FF'><u>ColumnHeader</u></font></HTML>" and a sort rank is set, then the sort rank is added in front of the HTML start tag.
Therefore, the HTML string is not processed anymore and the HTML string is visible in the column header like this:
"2 <HTML><font color='#0000FF'><u>ColumnHeader</u></font></HTML>".

This is caused by the following code lines (178-183) in org.netbeans.swing.etable.ETableHeader:

if (sortRank != 0) {
   if (sortedColumns.size () > 1) {
      valueString = (valueString == null || valueString.isEmpty()) ?
         Integer.toString(sortRank) :
         sortRank+" "+valueString;

Can you please add an HTML recognition and include the sort rank into the HTML string, if the column display name is provided as HTML string.
The resulting HTML string could look like this:
"<HTML>2 <font color='#0000FF'><u>ColumnHeader</u></font></HTML>"
Comment 1 tdr 2017-08-28 09:26:26 UTC
Hey, can you please fix this for NetBeans Platform version 9.0.
For me it is really important to integrate the fix into my application.
The upgrade to 9.0 would be the ideal time for that.
Comment 2 MrUrdam 2017-08-28 09:30:06 UTC
Can you please fix this. I also habe that issue when I work with an HTML string. Thanks.