• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

editable JTree

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hallo,
I have written a small sample application with an editable tree.
Sometimes some nodes of the tree are editable, sometimes they are NOT.
This inconsistent behaviour I have only notice with jdk 1.4.1_01, not with jdk 1.3.1_07.
Here is an example:

To reproduce the problem execute the following steps:
- After starting the test application open the sub-tree "sports"
- Click with the mouse pointer three times (very fast) on "food". Now "food" is editable.
- Click three times on "basketball". Now "basketball" is editable.
- Click with the mouse pointer three times on "food" (once again). Now "food" is NOT editable.
Can somebody help me to solve this problem?
Thanks
Thorsten Schenkel
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can you copy code into your IDE so the format doesn't get all screwed up?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm... it's not just a problem in the Windows L&F, and the workaround is to close the open node... looks like there's some kind of problem with "editability" getting stuck on a certain level of the JTree.

I'd post it to the Java Bug Database.
 
reply
    Bookmark Topic Watch Topic
  • New Topic