Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A Table like JTreeTable with editable components like ComboBox, TextArea, CheckBox as Rows

enter image description here

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.

like image 790
Wiki Avatar asked Aug 27 '14 14:08

Wiki


1 Answers

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.

image

like image 68
trashgod Avatar answered Sep 23 '22 23:09

trashgod