File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree up  not working properly" Watch "JTree up  not working properly" New topic

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

Joined: Jun 19, 2010
Posts: 825

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:
subject: JTree up not working properly
It's not a secret anymore!