0
How to use getRoot() method in JTree in Netbeans
I created JTree in class and it works perfectly but I want to print getRoot() and getChildCount() in output
1 Réponse
+ 1
Let's suppose that you have a JTree object and it is called tree, the following code will help you to get the root of it: -
tree.getModel( ).getRoot( );
I hope this answer helps you.