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.
有没有办法隐藏java文件上的折叠[-]和展开[+]按钮JTree? 如果不可能,有没有办法将其更改为不同的图标?
JTree
两者都是:您可以指定一个空的,如此处Icon所示。您可以替换您自己的实现,如此处所示。这些是相关的键:UIManager
Icon
UIManager
UIManager.put("Tree.collapsedIcon", empty); UIManager.put("Tree.expandedIcon", empty);