How to save Pivot Grid Column width with the PivotTablePersistenceUtils?
Which way is preferable if it is possible?
Is there any other way to do this?
Moderator: JIDE Support
PivotTablePane pivotTable;
JTable columnHeaderTable = pivotTable.getColumnHeaderTable();
tableColumnWidth = PivotTablePane.getTableColumnWidth((HeaderTable)columnHeaderTable);
// Then, tableColumnWidth is serialized in a file
PivotTablePane pivotTable;
// tableColumnWidth owns the content serialized in a file
JTable columnHeaderTable = pivotTable.getColumnHeaderTable();
PivotTablePane.setTableColumnWidth((HeaderTable)columnHeaderTable, tableColumnWidth);
Little update on that topic.
I was working on my project with the latest JDK 8 (1.8.0_121) and jide 3.5.15.
It appeared that the restore of the saved column size was working fine.
I came back to the former Java runtime I was using (1.8.0_66), and the restore failed, like described earlier in this topic.
We are planning to integrate Jide 3.6.19 once released, but I wanted to notify you about this, just in case it can reveal a deeper bug.
Return to JIDE Common Layer Open Source Project Discussion (Community Driven)
Users browsing this forum: No registered users and 9 guests