List of usage examples for javax.swing JTree setVisible
@BeanProperty(hidden = true, visualUpdate = true) public void setVisible(boolean aFlag)
From source file:org.openmicroscopy.shoola.agents.util.SelectionWizardUI.java
/** * Initializes the specified tree/*w ww .j a va2 s . com*/ * * @param tree The tree to handle. * @param user The user currently logged in. */ private void initializeTree(JTree tree, ExperimenterData user) { tree.setVisible(true); tree.setRootVisible(false); ToolTipManager.sharedInstance().registerComponent(tree); tree.setCellRenderer(new TreeCellRenderer(user.getId())); tree.setShowsRootHandles(true); TreeImageSet root = new TreeImageSet(""); tree.setModel(new DefaultTreeModel(root)); }