Name the method, to expand & collapse nodes in a Jtree?
Answer Posted / jayati
JTree provides a set of methods that you can use to expand
or collapse parts of the tree
public void expandRow (int row)
public void collapseRow(int row)
public void expandPath(TreePath path)
public void collapsePath(TreePath path)
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
What are swing components?
Who created the swing?
What is frame in java swing?
Which method of the Component class is used to set the position and size of a component?
Where is java swing used?
Is javafx better than swing?
Write a program to include the internal frame in swing.
Why does JComponent have add() and remove() methods but Component does not?
How to align components in java swing?
Is java swing a framework?
What is swing package in java?
Why swing is used in java?
How is parsing html used in swing?
How to generate bill in java swing?
What is the difference between a scrollbar and a jscrollpane ?