Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 23rd, 2008, 07:51 AM
Newbie
 
Join Date: Sep 2008
Posts: 2
Question Refreshing and updating JTree.

Hi,

this is krishna i am on developing FTP in java.Here i display the server Files and

client Files in tree view using JTree.So my question is that once the client send

the file to server (or) server send the file to client.The new file(or) folder should be

added as a node in Jtree.After clicking refresh option in pop up.The tree is not get

updated.Here i am using Default Tree model.

so tell me how to refresh the JTree and make dynamic tree.
Reply
  #2  
Old September 23rd, 2008, 02:27 PM
Moderator
 
Join Date: Mar 2007
Location: Voorschoten, the Netherlands
Age: 52
Posts: 8,491
Default

After you've made your changes in the model call the treeDidChange() method
on the JTree; also read the relevant API documentation.

kind regards,

Jos
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles