Results 1 to 2 of 2

Thread: Update JTree

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

    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.

    Thanks!

    Dave

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

Similar Threads

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