Refreshing and updating JTree.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivakrish85
    New Member
    • Sep 2008
    • 2

    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.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    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

    Comment

    Working...