This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTree problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree problem" Watch "JTree problem" New topic
Author

JTree problem

swarna latha
Greenhorn

Joined: Jun 22, 2007
Posts: 15
Hi,

I have constructed empty tree.
when ever if i click add button then only tree should visible without root.I have used tree.setrootVisible(false).But its not working for my code.I am trying add one node only.If i try to add one more node i can able to get add for that method.
For add button i added actinlistener.there when ever i click add button i am getting data from textfield(textfield.gettext()) like that.
I can collect only one data from,next time if click i am getting data.But i cant able add that text to tree as a next root.

please help me on this
Thanks and regards
Swarna
sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
I did't understand your requirement. Tree with out root???

Can you post your requirement with code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree problem
 
Similar Threads
Create JTree using data from Map
Problem in jsp..
problem with setTransient(true) jsf Tree component
JTree, adding and removing nodes contained in a master tree
update the tree node