Jtree - selection issues

I have writen a JCheckBox Tree - all is fine but i need to implement a feature that allows user to move the items up and down the hierarych inside only one level. so I added a buttons to do that but when i choose the item and then choose button i lost focus on the tree - how to recover and set the focus to desired item ? example code will be very helpful...

Thanks in advance

mchmiel

[404 byte] By [mchmiel21a] at [2007-10-2 10:33:35]
# 1
anyone?
mchmiel21a at 2007-7-13 2:19:18 > top of Java-index,Desktop,Core GUI APIs...
# 2
Try this in the button's ActionListener:tree.requestFocusInWindow();
happy_hippoa at 2007-7-13 2:19:18 > top of Java-index,Desktop,Core GUI APIs...