Results 1 to 2 of 2

Thread: Update JTree

  1. #1
    MediumDave is offline Member
    Join Date
    Jan 2011
    Rep Power

    Default Update JTree

    Hi all,

    I have a JTree using a custom model (which extends DefaultTreeModel), and the elements in the JTree are editable.

    In my custom model, the method 'valueForPathChanged' is being called and I am successfully updating the backend database.

    However, the JTree is not being updated with the new value. I am getting myself confused as to how this should take place - what method I should call or if a listener should be implemented or if I should be firing an event.

    Can someone straighten me out and tell me what the next step should be so the JTree is updated.



  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. Jtree Help
    By miladirooni in forum New To Java
    Replies: 1
    Last Post: 10-28-2009, 01:00 AM
  2. zip to JTree
    By icsbcn in forum AWT / Swing
    Replies: 8
    Last Post: 09-01-2009, 05:26 PM
  3. Move JTree item to another JTree.
    By Melki in forum AWT / Swing
    Replies: 8
    Last Post: 07-09-2009, 12:59 PM
  4. JTree Popup
    By jiexx in forum New To Java
    Replies: 1
    Last Post: 03-24-2009, 02:58 AM
  5. Custom JTree
    By guyjasper in forum AWT / Swing
    Replies: 0
    Last Post: 10-20-2008, 05:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts