- Code: Select all
_tableModel = new PluginAccessTableModel();
FilterableTableModel filterableTableModel = new FilterableTableModel(_tableModel);
_groupTableModel = new DefaultGroupTableModel(filterableTableModel);
//grouping on the first column -Plugin
//_groupTableModel.addGroupColumn(0, DefaultGroupTableModel.SORT_GROUP_COLUMN_ASCENDING);
_groupTableModel.addGroupColumn(0);
_groupTableModel.groupAndRefresh();
where PluginAccessTableModel() is an custom Table model. And i am setting the 1st column as Group column.
I am getting the the Grouped table properly, but i want to add an ICon to the Grouped row and add a listener to that ICon.
In the Attachment i have added screen shots of both desired output and actual output that i am having.
In Actual : I am getting Grouped Rows, but there is no Button added to the grouped column.
In Desired : Every thing else should be similar to Actual, and want to add an additional button to the Grouped Row.
Please Guide me how to do it.