如何在 JTree 中显示多列 [英] How to display multiple column in a JTree

查看:28
本文介绍了如何在 JTree 中显示多列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 DefaultTreeCellRenderer 中显示一个对象的多个字段.请让我知道是否有任何教程.我试过本教程,但没有谈到显示多列中的对象数据.

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.

推荐答案

您可以查看 org.netbeans.swing.outline.Outline,提到了 此处此处.独立 JAR 位于 NetBeans 发行版中:

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

这篇关于如何在 JTree 中显示多列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆