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 class is at the top of the AWT event hierarchy?
What is jpanel in java swing with example?
What are heavy weight components ?
How to change button color in java swing?
What do you mean by java swing?
What is swing container?
What is frame in java swing?
Explain the difference between awt and swt.
What is the difference between applications and applets?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What is an event handler in swing?
Why swings are used in java?
How to print in java swing application?
What is import javax swing * used for?
What is the difference between swing and awt in java?