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

What is content pane in swing?

521


What is an on stage swing?

545


What are the two key features of swing?

528


What are heavy weight components ?

619


Is swing still used?

499






What is frame in java swing?

538


What is layout in java swing?

532


Why swing components are called lightweight components?

504


Is javafx better than swing?

505


what are the steps required in creating an empty table drop?

578


What are the advantages of java swing over angular?

488


Explain how to render an html page using only swing.

1024


What is swing package in java?

520


What is java awt and swing?

604


How to generate bill in java swing?

682