Java JTree Collapse collapseAllRows(JTree tree)

Here you can find the source of collapseAllRows(JTree tree)

Description

collapse All Rows

License

Open Source License

Declaration

private static void collapseAllRows(JTree tree) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

public class Main {
    private static void collapseAllRows(JTree tree) {
        for (int i = tree.getRowCount() - 1; i >= 0; i--) {
            tree.collapseRow(i);/*from ww  w.  ja  va 2  s. c  o m*/
        }
    }
}

Related

  1. collapseAll(JTree tree)
  2. collapseAllNodes(JTree tree)
  3. collapseTree(JTree tree)
  4. collapseTree(JTree tree)
  5. fullSelectionCollapse(JTree tree)
  6. getTreeSelectedCollapsedIcon()