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 258190 - The Column Renderer does not work for all the columns
Summary: The Column Renderer does not work for all the columns
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal with 2 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 09:42 UTC by epele83
Modified: 2016-03-06 18:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB platform application with issue on olv column renderer (32.96 KB, application/zip)
2016-03-01 09:42 UTC, epele83
Details

Note You need to log in before you can comment on or make changes to this bug.
Description epele83 2016-03-01 09:42:39 UTC
Created attachment 158682 [details]
NB platform application with issue on olv column renderer

I will upload a test case where the I have implemented a org.netbeans.spi.viewmodel.TableRendererModel, all the column are using the same renderer, the purpose of the renderer is to do not show <null> when the object is null, but an empty cell.

In this case you can see as the last columns are not affected by the renderer, I suspect it involves also the visibility of the columns.

I debugged the netbeans8.1 code and I realize the bug might be in the org.netbeans.modules.viewmodel.OutlineTable.updateTableColumns(Property[] columnsToSet, TableColumn[] newTColumns) method,

I replaced the code from NB 7.4 and in this case the behavior is correct, but the two codes are so different to think to apply the old code.

Can you help me with a fix for this problem

Thanks in advance
-Paolo
Comment 1 epele83 2016-03-02 10:09:27 UTC
Sorry to increase the priority to P1 but this issue is blocking the release of our application.
Comment 2 Martin Entlicher 2016-03-02 17:25:20 UTC
I've reproduced the bug on the attached project. Thanks for the test case.
I'm working on identification of the problem...
Comment 3 Martin Entlicher 2016-03-03 08:09:54 UTC
Fixed by changeset:   295914:767b1ba9ba34
http://hg.netbeans.org/core-main/rev/767b1ba9ba34
Comment 4 epele83 2016-03-03 09:49:40 UTC
We applied the patch and it worked perfectly.
Thanks a lot
-Paolo
Comment 5 Quality Engineering 2016-03-04 02:06:55 UTC
Integrated into 'main-silver', will be available in build *201603040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/767b1ba9ba34
User: mentlicher@netbeans.org
Log: #258190: Fixed assignment of cell editor and cell renderer to table columns.
Comment 6 Martin Entlicher 2016-03-06 18:22:51 UTC
Thanks, marking as verified based on your comment.