Here you can find the source of expandAll(JTree jTree)
public static void expandAll(JTree jTree)
//package com.java2s; //License from project: Open Source License import javax.swing.JTree; public class Main { public static void expandAll(JTree jTree) { for (int i = 0; i < jTree.getRowCount(); i++) { jTree.expandRow(i);// ww w. ja v a 2 s. c o m } } }