Results 1 to 2 of 2
  1. #1
    ni4ni is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default How to capture a tree node edit ?

    Hello

    I have a JTree which is editable. I want to do something every time a node's text is changed but I cant figure out what event gets fired once a node has changed (only the text, not its place in the tree hierarchy).
    How can I get an indication when a node's text has changed and then run some code ?

    Thanks

    Guy

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,236
    Rep Power
    19

    Default

    I cant figure out what event gets fired once a node has changed
    Check out the methods of TreeModel and you'll find what you need.

    db

Similar Threads

  1. Capture
    By PhQ in forum New To Java
    Replies: 7
    Last Post: 10-17-2010, 05:26 PM
  2. Replies: 0
    Last Post: 04-04-2010, 07:40 AM
  3. Replies: 1
    Last Post: 08-24-2009, 11:41 AM
  4. Creating a Tree and then saving the Tree
    By jackmatt2 in forum New To Java
    Replies: 0
    Last Post: 08-22-2009, 12:51 PM
  5. Replies: 2
    Last Post: 06-03-2008, 09:07 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
  •