How can I create a tree view in Applet/Swing
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, November 8, 2001 03:16 AM

How can I create a tree view in Applet/Swing (a explorer view) where a user at run time can create folders and remove folders and save some documents into the folders at any level and also I am displaying some document in a page, I want user can drag and drop that document in one one of those folders.
If any body helps me I shall be very thankful..
It's a great challenge.......

Re: How can I create a tree view in Applet/Swing

Posted By:   P_Nagappan  
Posted On:   Thursday, November 8, 2001 05:56 PM

Hi,
JTree can be used for creating the TreeView (Explorer View)
.
DefaultTreeModel's insertNodeInto method can be used for adding a node / folder at runtime.
DefaultTreeCellRenderer can be used for setting the icons (folder/file).


Regards
Nagappan
About | Sitemap | Contact