Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在不选择 JTree 的情况下展开/折叠节点?(未突出显示)
非常感谢
您应该能够使用展开或折叠方法展开/折叠您关心的每个节点。这是关于 javaalmanac 的一个很好的例子。
http://www.exampledepot.com/egs/javax.swing.tree/ExpandAll.html