5

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.

Wiki
  • 245
  • 3
  • 13
  • It's hard to say. JTreeTable is not part of the core API, so there a many different implementations out there. One can be found here: http://www.java2s.com/Code/Java/Swing-Components/JTreeTablecomponent.htm . Which one are you using? – splungebob Aug 27 '14 at 15:18
  • 1
    I have not yet decided to use anything, I am waiting for a treetable with above structure (shown in the image) in JAVA. Once I got a Structure like that in JAVA, then I will start implementation. – Wiki Aug 27 '14 at 15:41
  • 1
    Also, I am not specifically talking about JTreeTable or JXTreeTable here, I need anything in java with that structure. – Wiki Aug 27 '14 at 15:43
  • click to jxtreetable and jtreetable too for more info – mKorbel Aug 27 '14 at 17:45

1 Answers1

6

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

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045