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.
我已经使用org.dom4j.io.SAXReader解析了一个 xml 文档,是否可以将其输入javax.swing.tree.TreeModel并生成一个动态变化的可视 Swing JTree?
例如,当我以编程方式添加或删除节点时,我希望 Swing JTree立即反映更改。
我怎样才能做到这一点,使用 dom4j 是否有更好的建议?
你看过BranchTreeNode 吗?我认为这应该有所帮助。