• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to set treenode as "being edited"?

 
Johann Dobbins
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quick question

is there a method to set a node of a JTree so that it is "being edited"? meaning, set it like it has been double clicked, where it is selected and there is a cursor up and anything the user types modifies the text of the node.

thank you
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a Swing-related question. Moving.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see a startEditingAtPath method in the JTree api Method Summary section.
 
Johann Dobbins
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Craig Wood wrote:I see a startEditingAtPath method in the JTree api Method Summary section.


not sure how i missed that. works perfectly. thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!