Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display multiple column in a JTree

Tags:

java

swing

How can we display multiple fields of a object in DefaultTreeCellRenderer. Please let me know if there is any tutorial. I have tried this tutorial but it isn't talked about displaying the object data in many column.

like image 323
Ashish Avatar asked Dec 07 '25 13:12

Ashish


2 Answers

After some research I have found the tutorial which I was looking. Here is the link

http://www.hameister.org/JavaSwingTreeTable.html

like image 132
Ashish Avatar answered Dec 09 '25 03:12

Ashish


You might look at org.netbeans.swing.outline.Outline, mentioned here and here. The stand-alone JAR is in the NetBeans distribution:

NetBeans/platform/modules/org-netbeans-swing-outline.jar

image

like image 29
trashgod Avatar answered Dec 09 '25 03:12

trashgod