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.
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.
来源:https://stackoverflow.com/questions/25530463/a-table-like-jtreetable-with-editable-components-like-combobox-textarea-checkb