Hi Andreas,
I think you should extend the org.dom4j.swing.LeafTreeNode and org.dom4j.swing.BranchTreeNode so that they implement the javax.swing.tree.MutableTreeNode interface.
You should take a look at the Java Tutorial: http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#dynamic
I hope this info gets you started.
regards, Maarten
a Punkt heigl at web Punkt de wrote:
Hi everyone
Is there an easy way of adding new LeafTreeNodes or BranchTreeNodes to a DocumentTreeModel?
Has anyone succeded in doing so and is willing of getting me some help?
I try to write an XMLEditor (ok, that IS inventing the weel another time) that uses a DTD to create a new XML-Document from. But adding new Nodes seems to be rather tricky and i didn't get it until now.
I am very thankfull for any help
best regards
andreas heigl
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user