Move « JTree « Java Swing Q&A





1. how to make the screen to move along with the JTree    coderanch.com

I'm creating a gantt chart..when i expand the tree the task coresponding to the leaf node have to show and if i close the leaf node,the corresponding task should not show.. How can i do it..I have created a tree.. package javaapplication2; import java.awt.*; import java.awt.Graphics2D; //////import java.awt.Rectangle; import javax.swing.JApplet; import javax.swing.*; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeCellRenderer; import javax.xml.parsers.SAXParserFactory; public class reg ...

2. Items not allowed to move in JTRee    coderanch.com

3. Move JTree item to another JTree.    java-forums.org

I am going to have two JTree's, if I select one JTree's leaf node and click a move button then the the node should move to the other Jtree under the same parent node were the leaf node comes from. If there is no such parent node in the other JTree then it should create that node and want to move ...