Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTree expand programatically is not working

843806Nov 18 2007 — edited Nov 19 2007
jTree1.fireTreeExpanded(curTreePath);
expandAll(jTree1, curTreePath, true);
jTree1.expandPath(curTreePath);
jTree1.scrollPathToVisible(curTreePath);
jTree1.updateUI();

jTree1.setExpandsSelectedPaths(true);
jTree1.expandPath(curTreePath);
expandAll(jTree1, curTreePath, true);
for (int i = 0; i < jTree1.getRowCount(); i++)
{
jTree1.expandRow(i);
}
jTree1.validate();
jTree1.repaint();



Any help ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2007
Added on Nov 18 2007
7 comments
364 views