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.
为给定节点的所有子节点创建一个公共边界的最简单方法是什么?
我有一个代码,您可以在第一张图片上看到结果(创建了我自己的 TreeRenderer,在getTreeCellRendererComponent方法中添加了边框)。第二个是我希望达到的结果。
1.
2.