Java tutorial
//package com.java2s; import javax.swing.JTree; public class Main { public static void expandJTree(JTree toexpand) { // replace this with a sensible implementation if it fails for (int row = 0; row < toexpand.getRowCount(); ++row) { toexpand.expandRow(row); } } }