You should add a listener to your TreeModel and then make the necessary changes yourself in the file system as a change event occurs. See the example on http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#dynamic (just after the text that begins To be notified of node changes, [...]
I have a swing aplication in that Jtree is a part of that .So I want to represent or see the nodes of the JTree in C: or any drive as folder.ok?
Thankx a lot forr interest in this plz give me this solution I am in problem........
listen can u write a code for a tree object JTree by which drag and drop is happening and the file system reflection is happening....ok
No way! The forums are for help, guidance and advice, they are not a restaurant where you can order whatever you like for free.
But with a Google search:
http://www.google.com/search?q=JTree%20file%20system&sourceid=opera&num=%i&ie=utf-8&oe=utf-8
This was the first hit:
http://www.phptr.com/articles/article.asp?p=26327&seqNum=16&rl=1
... so a little research before posting wouldn't do any harm, eh?