expandEntireTree(tree, p);
}
}
protected JTreeTable createTreeTable(TreeTableModel model) {
JTreeTable treeTable = new JTreeTable(model);
treeTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
TableColumnModel columnModel = treeTable.getColumnModel();
//Operation column increased
columnModel.getColumn(1).setPreferredWidth(300);
//Options column increased
columnModel.getColumn(2).setPreferredWidth(100);
JTree treeTableTree = treeTable.getTree();
treeTableTree.setCellRenderer(new PlanTreeCellRenderer());
//Expand all of the rows in the tree if the root is non null.
Object root = treeTableTree.getModel().getRoot();
if (root != null) {
TreePath p = new TreePath(root);