sign in | register

Blogoforum Blogoforum - JTree Drag and Drop

recent > programming > java > computer > swing > jtree and tree > drag-and-drop and file

Hi,
all I have problem with JTree can u tell me how to reflect the JTree node transfer in File System.
Means I have done a JTree aplication in swing and that needs to be drag and drop between twonodes that is happening but It should reflect in File System
by durga
April 18, 2007 12:19 AM
+ add to your Readings [?]
- Reply

JTree Drag and Drop and Filesystem Change

What object you generate your TreeModel from?

If you have some set of File objects you generate your nodes from - you can hold a reference to corresponding File in your node. As drag-and-drop happens you can get that Files from participating nodes and manipulate.

Let me know if this was helpful. Good luck!

by dkrukovsky
April 20, 2007 7:45 AM
in
- Reply
wrong? assign your keywords [?]
Google

Explore Blogoforum - The Better Forum Experiment

Blogoforum is looking for UI Designer.

Tell the World

Blogoforum will become more useful as its user base grows. If you think the idea is interesting, bookmark it on del.icio.us and tell your friends.