Generated by
JDiff

Class javax.swing.JTree

Documentation changed from old to new.

Changed Constructors
JTree(Object[]) Documentation changed from old to new.
Returns a JTree with each element of the specified array as the child of a new root node which is not displayed.
JTree(Hashtable) Documentation changed from old to new.
Returns a JTree created from a Hashtable which does not display with root.
JTree(Vector) Documentation changed from old to new.
Returns a JTree with each element of the specified Vector as the child of a new root node which is not displayed.
JTree(TreeModel) Documentation changed from old to new.
Returns an instance of JTree which displays the root node -- the tree is created using the specified data model.
JTree(TreeNode) Documentation changed from old to new.
Returns a JTree with the specified TreeNode as its root which displays the root node.
JTree(TreeNode, boolean) Documentation changed from old to new.
Returns a JTree with the specified TreeNode as its root which displays the root node and which decides whether a node is a leaf node in the specified manner.
JTree(void) Documentation changed from old to new.
Returns a JTree with a sample model.
 

Added Methods
TreePath getAnchorSelectionPath() Returns the path identified as the anchor.
boolean getExpandsSelectedPaths() Returns the expandsSelectedPaths property.
int getToggleClickCount() Returns the number of mouse clicks needed to expand or close a node.
boolean removeDescendantSelectedPaths(TreePath, boolean) Removes any paths in the selection that are descendants of path.
void setAnchorSelectionPath(TreePath) Sets the path identified as the anchor.
void setExpandsSelectedPaths(boolean) Configures the expandsSelectedPaths property.
void setLeadSelectionPath(TreePath) Sets the path identifies as the lead.
void setToggleClickCount(int) Sets the number of mouse clicks before a node will expand or close.
 

Changed Methods
void addSelectionInterval(int, int) Documentation changed from old to new.
Adds the paths between index0 and index1 inclusive to the selection.
void addSelectionPath(TreePath) Documentation changed from old to new.
Adds the node identified by the specified TreePath to the current selection.
void addSelectionPaths(TreePath[]) Documentation changed from old to new.
Adds each path in the array of paths to the current selection.
void addSelectionRow(int) Documentation changed from old to new.
Adds the path at the specified row to the current selection.
void addTreeExpansionListener(TreeExpansionListener) Documentation changed from old to new.
Adds a listener for TreeExpansion events.
void addTreeSelectionListener(TreeSelectionListener) Documentation changed from old to new.
Adds a listener for TreeSelection events.
void addTreeWillExpandListener(TreeWillExpandListener) Documentation changed from old to new.
Adds a listener for TreeWillExpand events.
void clearToggledPaths() Documentation changed from old to new.
Clears the cache of toggled tree paths.
void collapsePath(TreePath) Documentation changed from old to new.
Ensures that the node identified by the specified path is collapsed and viewable.
void collapseRow(int) Documentation changed from old to new.
Ensures that the node in the specified row is collapsed.
String convertValueToText(Object, boolean, boolean, boolean, int, boolean) Documentation changed from old to new.
Called by the renderers to convert the specified value to text.
TreeModel createTreeModel(Object) Documentation changed from old to new.
Returns a TreeModel wrapping the specified object.
TreeModelListener createTreeModelListener() Documentation changed from old to new.
Creates and returns an instance of TreeModelHandler.
void expandPath(TreePath) Documentation changed from old to new.
Ensures that the node identified by the specified path is expanded and viewable.
void expandRow(int) Documentation changed from old to new.
Ensures that the node in the specified row is expanded and viewable.
void fireTreeCollapsed(TreePath) Documentation changed from old to new.
Notify all listeners that have registered interest for notification on this event type.
void fireTreeExpanded(TreePath) Documentation changed from old to new.
Notify all listeners that have registered interest for notification on this event type.
void fireTreeWillCollapse(TreePath) Documentation changed from old to new.
Notify all listeners that have registered interest for notification on this event type.
void fireTreeWillExpand(TreePath) Documentation changed from old to new.
Notify all listeners that have registered interest for notification on this event type.
void fireValueChanged(TreeSelectionEvent) Documentation changed from old to new.
Notifies all listeners that have registered interest for notification on this event type.
AccessibleContext getAccessibleContext() Documentation changed from old to new.
Gets the AccessibleContext associated with this JTree.
TreeCellEditor getCellEditor() Documentation changed from old to new.
Returns the editor used to edit entries in the tree.
TreeCellRenderer getCellRenderer() Documentation changed from old to new.
Returns the current TreeCellRenderer that is rendering each cell.
TreePath getClosestPathForLocation(int, int) Documentation changed from old to new.
Returns the path to the node that is closest to x y.
int getClosestRowForLocation(int, int) Documentation changed from old to new.
Returns the row to the node that is closest to x y.
TreeModel getDefaultTreeModel() Documentation changed from old to new.
Creates and returns a sample TreeModel.
Enumeration getDescendantToggledPaths(TreePath) Documentation changed from old to new.
Returns an Enumeration of TreePaths that have been expanded that are descendants of parent.
TreePath getEditingPath() Documentation changed from old to new.
Returns the path to the element that is currently being edited.
Enumeration getExpandedDescendants(TreePath) Documentation changed from old to new.
Returns an Enumeration of the descendants of the path parent that are currently expanded.
Object getLastSelectedPathComponent() Documentation changed from old to new.
Returns the last path component in the first node of the current selection.
TreePath getLeadSelectionPath() Documentation changed from old to new.
Returns the path identified as the lead.
int getLeadSelectionRow() Documentation changed from old to new.
Returns the row index corresponding to the lead path.
int getMaxSelectionRow() Documentation changed from old to new.
Returns the last selected row.
int getMinSelectionRow() Documentation changed from old to new.
Gets the first selected row.
TreeModel getModel() Documentation changed from old to new.
Returns the TreeModel that is providing the data.
TreePath[] getPathBetweenRows(int, int) Documentation changed from old to new.
Returns JTreePath instances representing the path between index0 and index1 (including index1).
Rectangle getPathBounds(TreePath) Documentation changed from old to new.
Returns the Rectangle that the specified node will be drawn into.
TreePath getPathForLocation(int, int) Documentation changed from old to new.
Returns the path for the node at the specified location.
TreePath getPathForRow(int) Documentation changed from old to new.
Returns the path for the specified row.
Dimension getPreferredScrollableViewportSize() Documentation changed from old to new.
Returns the preferred display size of a JTree.
Rectangle getRowBounds(int) Documentation changed from old to new.
Returns the Rectangle that the node at the specified row is drawn in.
int getRowForLocation(int, int) Documentation changed from old to new.
Returns the row for the specified location.
int getRowForPath(TreePath) Documentation changed from old to new.
Returns the row that displays the node identified by the specified path.
int getRowHeight() Documentation changed from old to new.
Returns the height of each row.
int getScrollableBlockIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns the amount for a block increment which is the height or width of visibleRect based on orientation.
int getScrollableUnitIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns the amount to increment when scrolling.
boolean getScrollsOnExpand() Documentation changed from old to new.
Returns true if the tree scrolls to show previously hidden children.
TreeSelectionModel getSelectionModel() Documentation changed from old to new.
Returns the model for selections.
TreePath getSelectionPath() Documentation changed from old to new.
Returns the path to the first selected node.
TreePath[] getSelectionPaths() Documentation changed from old to new.
Returns the paths of all selected values.
int[] getSelectionRows() Documentation changed from old to new.
Returns all of the currently selected rows.
String getUIClassID() Documentation changed from old to new.
Returns the name of the L&F class that renders this component.
boolean hasBeenExpanded(TreePath) Documentation changed from old to new.
Returns true if the node identified by the path has ever been expanded.
boolean isEditable() Documentation changed from old to new.
Returns true if the tree is editable.
boolean isPathSelected(TreePath) Documentation changed from old to new.
Returns true if the item identified by the path is currently selected.
boolean isRowSelected(int) Documentation changed from old to new.
Returns true if the node identitifed by row is selected.
void makeVisible(TreePath) Documentation changed from old to new.
Ensures that the node identified by path is currently viewable.
String paramString() Documentation changed from old to new.
Returns a string representation of this JTree.
void removeDescendantToggledPaths(Enumeration) Documentation changed from old to new.
Removes any descendants of the TreePaths in toRemove that have been expanded.
void removeSelectionInterval(int, int) Documentation changed from old to new.
Removes the nodes between index0 and index1 inclusive from the selection.
void removeSelectionPath(TreePath) Documentation changed from old to new.
Removes the node identified by the specified path from the current selection.
void removeSelectionPaths(TreePath[]) Documentation changed from old to new.
Removes the nodes identified by the specified paths from the current selection.
void removeTreeExpansionListener(TreeExpansionListener) Documentation changed from old to new.
Removes a listener for TreeExpansion events.
void removeTreeSelectionListener(TreeSelectionListener) Documentation changed from old to new.
Removes a TreeSelection listener.
void removeTreeWillExpandListener(TreeWillExpandListener) Documentation changed from old to new.
Removes a listener for TreeWillExpand events.
void scrollPathToVisible(TreePath) Documentation changed from old to new.
Makes sure all the path components in path are expanded (except for the last path component) and scrolls so that the node identified by the path is displayed.
void scrollRowToVisible(int) Documentation changed from old to new.
Scrolls the item identified by row until it is displayed.
void setCellEditor(TreeCellEditor) Documentation changed from old to new.
Sets the cell editor.
void setCellRenderer(TreeCellRenderer) Documentation changed from old to new.
Sets the TreeCellRenderer that will be used to draw each cell.
void setExpandedState(TreePath, boolean) Documentation changed from old to new.
Sets the expanded state of this JTree.
void setInvokesStopCellEditing(boolean) Documentation changed from old to new.
Determines what happens when editing is interrupted by selecting another node in the tree a change in the tree's data or by some other means.
void setModel(TreeModel) Documentation changed from old to new.
Sets the TreeModel that will provide the data.
void setRootVisible(boolean) Documentation changed from old to new.
Determines whether or not the root node from the TreeModel is visible.
void setRowHeight(int) Documentation changed from old to new.
Sets the height of each cell in pixels.
void setScrollsOnExpand(boolean) Documentation changed from old to new.
Determines whether or not when a node is expanded as many of the descendants are scrolled to be inside the viewport as possible.
void setSelectionInterval(int, int) Documentation changed from old to new.
Selects the nodes between index0 and index1 inclusive.
void setSelectionModel(TreeSelectionModel) Documentation changed from old to new.
Sets the tree's selection model.
void setSelectionPath(TreePath) Documentation changed from old to new.
Selects the node identified by the specified path.
void setSelectionPaths(TreePath[]) Documentation changed from old to new.
Selects the nodes identified by the specified array of paths.
void setSelectionRows(int[]) Documentation changed from old to new.
Selects the nodes corresponding to each of the specified rows in the display.
void setVisibleRowCount(int) Documentation changed from old to new.
Sets the number of rows that are to be displayed.
void startEditingAtPath(TreePath) Documentation changed from old to new.
Selects the node identified by the specified path and initiates editing.
boolean stopEditing() Documentation changed from old to new.
Ends the current editing session.
void updateUI() Documentation changed from old to new.
Notification from the UIManager that the L&F has changed.
String getToolTipText(MouseEvent) Documentation changed from old to new.
Overrides JComponent's getToolTipText method in order to allow renderer's tips to be used if it has text set.
boolean isCollapsed(TreePath) Documentation changed from old to new.
Returns true if the value identified by path is currently collapsed this will return false if any of the values in path are currently not being displayed.
boolean isExpanded(TreePath) Documentation changed from old to new.
Returns true if the node identified by the path is currently expanded
boolean isVisible(TreePath) Documentation changed from old to new.
Returns true if the value identified by path is currently viewable which means it is either the root or all of its parents are expanded.
 

Added Fields
String ANCHOR_SELECTION_PATH_PROPERTY Bound property name for anchor selection path.
String EXPANDS_SELECTED_PATHS_PROPERTY Bound property name for expands selected paths property
String LEAD_SELECTION_PATH_PROPERTY Bound property name for leadSelectionPath.
String TOGGLE_CLICK_COUNT_PROPERTY Bound property name for toggleClickCount.
 

Changed Fields
String CELL_EDITOR_PROPERTY Documentation changed from old to new.
Bound property name for cellEditor.
String CELL_RENDERER_PROPERTY Documentation changed from old to new.
Bound property name for cellRenderer.
String EDITABLE_PROPERTY Documentation changed from old to new.
Bound property name for editable.
String INVOKES_STOP_CELL_EDITING_PROPERTY Documentation changed from old to new.
Bound property name for messagesStopCellEditing.
String LARGE_MODEL_PROPERTY Documentation changed from old to new.
Bound property name for largeModel.
String ROOT_VISIBLE_PROPERTY Documentation changed from old to new.
Bound property name for rootVisible.
String ROW_HEIGHT_PROPERTY Documentation changed from old to new.
Bound property name for rowHeight.
String SCROLLS_ON_EXPAND_PROPERTY Documentation changed from old to new.
Bound property name for scrollsOnExpand.
String SHOWS_ROOT_HANDLES_PROPERTY Documentation changed from old to new.
Bound property name for showsRootHandles.
String TREE_MODEL_PROPERTY Documentation changed from old to new.
Bound property name for treeModel.
String VISIBLE_ROW_COUNT_PROPERTY Documentation changed from old to new.
Bound property name for visibleRowCount.
TreeCellEditor cellEditor Documentation changed from old to new.
Editor for the entries.
TreeCellRenderer cellRenderer Documentation changed from old to new.
The cell used to draw nodes.
boolean invokesStopCellEditing Documentation changed from old to new.
If true when editing is to be stopped by way of selection changing data in tree changing or other means stopCellEditing is invoked and changes are saved.
TreeSelectionRedirector selectionRedirector Documentation changed from old to new.
Creates a new event and passed it off the selectionListeners.
TreeModelListener treeModelListener Documentation changed from old to new.
Updates the expandedState.
int visibleRowCount Documentation changed from old to new.
Number of rows to make visible at one time.