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を生成することは可能ですか?
たとえば、プログラムでノードを追加または削除する場合、SwingJTreeに変更をすぐに反映させたいと思います。
どうすればこれを達成できますか?また、dom4jを使用するためのより良い提案はありますか?
BranchTreeNodeを見たことがありますか。これが役立つと思います。