• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JTree - editing

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
    Bookmark Topic Watch Topic
  • New Topic