first time use JTree. Just wondering is it possible to have more than one top level TreeNodes?
thanks
first time use JTree. Just wondering is it possible to have more than one
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There can only be one root node. However you can set the JTree’s rootVisible property to false, and then the first level children will be shown as top level nodes.