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#setExpandsSelectedPaths是你要找的
JTree#setExpandsSelectedPaths