如何在JTree中显示多个列

时间:2021-10-11 12:37:27

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.

我们如何在DefaultTreeCellRenderer中显示对象的多个字段。如果有任何教程,请告诉我。我已经尝试过这个教程但是没有谈到在很多列中显示对象数据。

2 个解决方案

#1


2  

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

你可以看看这里和这里提到的org.netbeans.swing.outline.Outline。独立JAR位于NetBeans发行版中:

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

的NetBeans /平台/模块/为org-netbeans-摆动outline.jar

如何在JTree中显示多个列

#2


3  

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

经过一些研究,我找到了我正在寻找的教程。链接在这里

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

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

#1


2  

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

你可以看看这里和这里提到的org.netbeans.swing.outline.Outline。独立JAR位于NetBeans发行版中:

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

的NetBeans /平台/模块/为org-netbeans-摆动outline.jar

如何在JTree中显示多个列

#2


3  

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

经过一些研究,我找到了我正在寻找的教程。链接在这里

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

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