/** Construct a cell editor. * @param tree the tree */ public TreeViewCellEditor(JTree tree) { //Use a dummy DefaultTreeCellEditor - we'll set up the correct //icon when we fetch the editor component (see EOF). Not sure //it's wildly vaulable to subclass DefaultTreeCellEditor here - //we override most everything super(tree, new DefaultTreeCellRenderer()); // deal with selection if already exists if (tree.getSelectionCount() == 1) { lastPath = tree.getSelectionPath(); } addCellEditorListener(this); }
/** Construct a cell editor. * @param tree the tree */ public TreeViewCellEditor(JTree tree) { //Use a dummy DefaultTreeCellEditor - we'll set up the correct //icon when we fetch the editor component (see EOF). Not sure //it's wildly vaulable to subclass DefaultTreeCellEditor here - //we override most everything super(tree, new DefaultTreeCellRenderer()); // deal with selection if already exists if (tree.getSelectionCount() == 1) { lastPath = tree.getSelectionPath(); } addCellEditorListener(this); }
/** Construct a cell editor. * @param tree the tree */ public TreeViewCellEditor(JTree tree) { //Use a dummy DefaultTreeCellEditor - we'll set up the correct //icon when we fetch the editor component (see EOF). Not sure //it's wildly vaulable to subclass DefaultTreeCellEditor here - //we override most everything super(tree, new DefaultTreeCellRenderer()); // deal with selection if already exists if (tree.getSelectionCount() == 1) { lastPath = tree.getSelectionPath(); } addCellEditorListener(this); }