This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree - editing  RSS feed

 
Alex Ku
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
DefaultTreeCellEditor
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)
Thanks
Kawaii
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!