Editing A JTree Node Through External Editor

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Editing A JTree Node Through External Editor

  1. #1
    Join Date
    Dec 2005

    Exclamation Editing A JTree Node Through External Editor

    Hi Guys,

    Hope you all are doing well..
    Well right now i am facing a problem in JTree. I want whenever the user is traversing my JTree and presses enter it opens a a dialog box which contains a JTextArea. The moment a user presses the enter the dialog box will become invisible and the value written in the JTextarea will be assigned to the node.

    I am half way already but i am unable to assign the value of JTextarea to the node.

    Plz help me out how to asign a value to a node...........


  2. #2
    Join Date
    Aug 2003
    JTree has functionality for allowing nodes to be edited inline which means that you wouldn't have to have the JTextArea at all. This might be a better idea than popping up a JTextArea, and probably easier too.

    Hope this helps.

Similar Threads

  1. Java Doubly Circular Linked List
    By xsouldeath in forum Java
    Replies: 1
    Last Post: 11-28-2005, 12:19 AM
  2. Replies: 4
    Last Post: 01-11-2002, 05:18 AM
  3. Replies: 0
    Last Post: 01-10-2002, 03:15 PM
  4. EMERGENT.... double linked list
    By mary in forum Java
    Replies: 0
    Last Post: 07-20-2001, 09:42 AM
  5. Replies: 1
    Last Post: 01-15-2001, 11:24 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center