aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTree up  not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree up  not working properly" Watch "JTree up  not working properly" New topic
Author

JTree up not working properly

Krithika Beri
Ranch Hand

Joined: Sep 11, 2012
Posts: 36
I have a JTree and a button in the UI called up. When i select a node and say up, it is supposed to move that node up. The problem is that the first time it works fine but the second time that node disappears completely from the tree.
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

You started this topic about a month ago, and as I recall you got the solution for your "moving node up" problem (though the point was to select the node moved up, but still the code was working fine for what you want).


The quieter you are, the more you are able to hear.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree up not working properly
 
Similar Threads
JTree - drag and drop inside one tree - Java 1.6
Same JTree instance across 2 tabs
Node labelling within a tree using depth-first traversal
JTree TreeNode question
tree.setSelectionPath not working