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


Please Help Members By Posting Answers For Below Questions

When we should go for codebase in applet?

621


What is the purpose of transferhandler class?

564


What is the use of jfc in java swing?

660


Explain the difference between awt and swt.

553


What is the use of jcomponent class in swing?

573






What is swing used for?

493


What are the advantages of the event-delegation model over the event-inheritance model?

681


What is swing and awt in java?

519


What is awt and swing?

547


What is the function of abstractaction class?

590


What is swing api?

531


Where is java swing used?

584


Which layout does swing use by default?

498


How to align components in java swing?

585


Is swing an api?

551