Hi Mike,
I have overrided one more method startDocument() and there i am setting new root Node and in this way the Old nodes are detached. I have also added the JScrollpane to support the Scroll bars in the JTree.