Skip to main content

add row to JXTREETABLE

1 reply [Last post]
sang_part
Offline
Joined: 2006-07-12
Points: 0

Hi,
Could anybody please tell me how to get the table model and add rows of data to JXTreeTable

Thanks
Sangeetha

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kleopatra

Hi Sangeetha,

> Could anybody please tell me how to get the table model and add rows of data to JXTreeTable
>

the "real" model driving a treeTable is a TreeTableModel which actually
is a TreeModel :-) So basically, to insert/delete rows you insert/delete
nodes in a treeModel. Make sure it fires the correct treeModelEvents,
then the internal tableAdapter in treeTable will do the rest.

CU
Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net