Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree - editing

Alex Ku
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the API - Editing is started on a triple mouse click, or after a click, pause, click and a delay of 1200 miliseconds.
Is there any way that can make it just like other? (ie editing is started on a double mouse click, no pause is needed)
I extended the DefaultTreeCellEditor and tried this

but doesn't work. I guess it only works on table cells or other, but not tree cells
Also, can I click on a button and it will trigger some events so that a tree node is selected and is ready to be edited? (just like you triple clicks on the node itself)
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic