Reputation: 235
Is there any custom plugin(like JTreeTable with editable java components) in java, like in the above image.
I know this can be done by Extending JTreeTable or JXTreeTable Class or using TreeCellEditor etcetera... But, I need a quite exact structure like shown in the above image, Please guide me and Thanks in advance.
Upvotes: 5
Views: 1663
Reputation: 205785
Outline
, seen here and here, uses the same renderer and editor schema as JTable
. For example, to get a column of checkboxes, your RowModel
implementation of getColumnClass()
should return Boolean.class
and your implementation of isCellEditable()
should return true
for the Logical2
column. I haven't tried it, but DefaultCellEditor
, instantiated with a JCheckBox
, should work for the combo column.
Upvotes: 6