javax.swing.JTree
| Modifier and Type | Method and Description |
|---|---|
| public Component | Returns: the component for editingthe JTree that is asking the editor to edit;
this parameter can be null tree, Object the value of the cell to be edited value, boolean true if the cell is to be rendered with
selection highlighting isSelected, boolean true if the node is expanded expanded, boolean true if the node is a leaf node leaf, int the row index of the node being edited row)Sets an initial value for the editor. |
| getTreeCellEditorComponent | back to summary |
|---|---|
| public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Sets an initial value for the editor. This will cause the editor to stopEditing and lose any partially edited value if the editor is editing when this method is called. Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.
| |