PDA

View Full Version : Editing a whole row or column of a AbstractTableModel/TableView



mageta
18th April 2011, 16:07
Hi guys,

knows someone of you how I can edit a whole row or column by clicking on the corresponding header of a TableView?

As part of a little tool which I'm building for some friends, it should be possible to assign 'members' to specific 'groups'.. I thought it would be nice if the user could select the assignment by clicking a checkbox in a 2D-TableView (rows for members and columns for groups).. nothing to fancy and it works quite well.

As a optional fine-tuning I would like to give the user the option to select a whole row/column and activate all checkboxes in that row/column with one action (clicking on the header would be fine).. for example if one member is in all groups.. But I'm currently stuck with that. Is that even possible with a AbstractTableModel and a TableView?

best regards,
- Ben