Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Swing table tree

When you open a XML in Eclipse, the content can be shown in as a tree structure like

XML tree view

The tree is "embedded" in a table and the content is showed in a seperate column.

This would be very nice to replicate in Swing, not for XML content specifically, but for similar data with tree structure.

UPDATE

I just learned about JTreeTable, but I really need to do this in NetNeans. Should probably have mentioned that, sorry.

Any ideas?

like image 921
Theodor Avatar asked Aug 19 '11 14:08

Theodor


People also ask

What is @table in Java?

The JTable class is used to display data in tabular form. It is composed of rows and columns.


1 Answers

SwingX has a JXTreeTable, it's based on but much improved over the oldish examples (links to sun code/article) cited by @mKorbel

like image 174
kleopatra Avatar answered Oct 06 '22 01:10

kleopatra