Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

editable JTree  RSS feed

 
Thorsten Schenkel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Chris Cairns
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can you copy code into your IDE so the format doesn't get all screwed up?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!