/** * Expands the root path if a TreeModel has been set, does nothing if not. * */ private void expandRoot() { TreeModel model = getModel(); if (model != null && model.getRoot() != null) { expandPath(new TreePath(model.getRoot())); } }
/** * Expands the root path if a TreeModel has been set, does nothing if not. * */ private void expandRoot() { TreeModel model = getModel(); if (model != null && model.getRoot() != null) { expandPath(new TreePath(model.getRoot())); } }
/** * Expands the root path if a TreeModel has been set, does nothing if not. * */ private void expandRoot() { TreeModel model = getModel(); if (model != null && model.getRoot() != null) { expandPath(new TreePath(model.getRoot())); } }
/** * Expands the root path if a TreeModel has been set, does nothing if not. * */ private void expandRoot() { TreeModel model = getModel(); if (model != null && model.getRoot() != null) { expandPath(new TreePath(model.getRoot())); } }
/** * Expands the root path if a TreeModel has been set, does nothing if not. * */ private void expandRoot() { TreeModel model = getModel(); if (model != null && model.getRoot() != null) { expandPath(new TreePath(model.getRoot())); } }
/** * {@inheritDoc} */ @Override public void treeNodesInserted(TreeModelEvent e) { TreePath path = e.getTreePath(); //fixes SwingX bug #612 if (path.getParentPath() == null && !isRootVisible() && isCollapsed(path)) { //should this be wrapped in SwingUtilities.invokeLater? expandPath(path); } super.treeNodesInserted(e); } }
/** * {@inheritDoc} */ @Override public void treeNodesInserted(TreeModelEvent e) { TreePath path = e.getTreePath(); //fixes SwingX bug #612 if (path.getParentPath() == null && !isRootVisible() && isCollapsed(path)) { //should this be wrapped in SwingUtilities.invokeLater? expandPath(path); } super.treeNodesInserted(e); } }
/** * {@inheritDoc} */ @Override public void treeNodesInserted(TreeModelEvent e) { TreePath path = e.getTreePath(); //fixes SwingX bug #612 if (path.getParentPath() == null && !isRootVisible() && isCollapsed(path)) { //should this be wrapped in SwingUtilities.invokeLater? expandPath(path); } super.treeNodesInserted(e); } }
/** * {@inheritDoc} */ @Override public void treeNodesInserted(TreeModelEvent e) { TreePath path = e.getTreePath(); //fixes SwingX bug #612 if (path.getParentPath() == null && !isRootVisible() && isCollapsed(path)) { //should this be wrapped in SwingUtilities.invokeLater? expandPath(path); } super.treeNodesInserted(e); } }
/** * {@inheritDoc} */ @Override public void treeNodesInserted(TreeModelEvent e) { TreePath path = e.getTreePath(); //fixes SwingX bug #612 if (path.getParentPath() == null && !isRootVisible() && isCollapsed(path)) { //should this be wrapped in SwingUtilities.invokeLater? expandPath(path); } super.treeNodesInserted(e); } }