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 is import javax swing?
How to perform action on button in java swing?
How to create a swing gui in java?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is the use of swing in java?
What is java swing gui?
What is awt and swing in java?
Who created the swing?
What is import javax swing jframe?
What is swing framework in java?
What is swing package in java?
How to align components in java swing?
What is swing and awt in java?
What are heavy weight components ?
What method is used to specify a container's layout?