Uses of Class
javax.swing.JTree
Packages that use JTree
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects that combine two or more look and feels.
Provides classes and interfaces for dealing with
javax.swing.JTree.-
Uses of JTree in javax.swing
Methods in javax.swing with parameters of type JTreeModifier and TypeMethodDescriptionDefaultCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Implements theTreeCellEditorinterface.Constructors in javax.swing with parameters of type JTreeModifierConstructorDescriptionAccessibleJTreeNode(JTree t, TreePath p, Accessible ap) Constructs an AccessibleJTreeNode -
Uses of JTree in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type JTreeModifier and TypeMethodDescriptionabstract voidTreeUI.cancelEditing(JTree tree) Cancels the current editing session.abstract TreePathTreeUI.getClosestPathForLocation(JTree tree, int x, int y) Returns the path to the node that is closest to x,y.abstract TreePathTreeUI.getEditingPath(JTree tree) Returns the path to the element that is being edited.abstract RectangleTreeUI.getPathBounds(JTree tree, TreePath path) Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.abstract TreePathTreeUI.getPathForRow(JTree tree, int row) Returns the path for passed in row.abstract intTreeUI.getRowCount(JTree tree) Returns the number of rows that are being displayed.abstract intTreeUI.getRowForPath(JTree tree, TreePath path) Returns the row that the last item identified in path is visible at.abstract booleanReturns true if the tree is being edited.abstract voidTreeUI.startEditingAtPath(JTree tree, TreePath path) Selects the last item in path and tries to edit it.abstract booleanTreeUI.stopEditing(JTree tree) Stops the current editing session. -
Uses of JTree in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as JTreeModifier and TypeFieldDescriptionprotected JTreeBasicTreeUI.treeComponent that we're going to be drawing into.Methods in javax.swing.plaf.basic with parameters of type JTreeModifier and TypeMethodDescriptionvoidBasicTreeUI.cancelEditing(JTree tree) Cancels the current editing session.BasicTreeUI.getClosestPathForLocation(JTree tree, int x, int y) Returns the path to the node that is closest to x,y.BasicTreeUI.getEditingPath(JTree tree) Returns the path to the element that is being edited.BasicTreeUI.getPathBounds(JTree tree, TreePath path) Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.BasicTreeUI.getPathForRow(JTree tree, int row) Returns the path for passed in row.intBasicTreeUI.getRowCount(JTree tree) Returns the number of rows that are being displayed.intBasicTreeUI.getRowForPath(JTree tree, TreePath path) Returns the row that the last item identified in path is visible at.booleanReturns true if the tree is being edited.voidBasicTreeUI.startEditingAtPath(JTree tree, TreePath path) Selects the last item in path and tries to edit it.booleanBasicTreeUI.stopEditing(JTree tree) Stops the current editing session. -
Uses of JTree in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type JTreeModifier and TypeMethodDescriptionvoidMultiTreeUI.cancelEditing(JTree a) Invokes thecancelEditingmethod on each UI handled by this object.MultiTreeUI.getClosestPathForLocation(JTree a, int b, int c) Invokes thegetClosestPathForLocationmethod on each UI handled by this object.MultiTreeUI.getEditingPath(JTree a) Invokes thegetEditingPathmethod on each UI handled by this object.MultiTreeUI.getPathBounds(JTree a, TreePath b) Invokes thegetPathBoundsmethod on each UI handled by this object.MultiTreeUI.getPathForRow(JTree a, int b) Invokes thegetPathForRowmethod on each UI handled by this object.intMultiTreeUI.getRowCount(JTree a) Invokes thegetRowCountmethod on each UI handled by this object.intMultiTreeUI.getRowForPath(JTree a, TreePath b) Invokes thegetRowForPathmethod on each UI handled by this object.booleanInvokes theisEditingmethod on each UI handled by this object.voidMultiTreeUI.startEditingAtPath(JTree a, TreePath b) Invokes thestartEditingAtPathmethod on each UI handled by this object.booleanMultiTreeUI.stopEditing(JTree a) Invokes thestopEditingmethod on each UI handled by this object. -
Uses of JTree in javax.swing.tree
Fields in javax.swing.tree declared as JTreeModifier and TypeFieldDescriptionprotected JTreeDefaultTreeCellEditor.treeJTreeinstance listening too.Methods in javax.swing.tree with parameters of type JTreeModifier and TypeMethodDescriptionprotected voidDefaultTreeCellEditor.determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Determine the offset.DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Configures the editor.TreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Sets an initial value for the editor.DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) Configures the renderer based on the passed in components.TreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) Sets the value of the current tree cell tovalue.protected voidSets the tree currently editing for.Constructors in javax.swing.tree with parameters of type JTreeModifierConstructorDescriptionDefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer) Constructs aDefaultTreeCellEditorobject for a JTree using the specified renderer and a default editor.DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) Constructs aDefaultTreeCellEditorobject for aJTreeusing the specified renderer and the specified editor.