diff options
Diffstat (limited to 'javax/swing/JTree.java')
-rw-r--r-- | javax/swing/JTree.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/javax/swing/JTree.java b/javax/swing/JTree.java index 091ae2e11..660945c27 100644 --- a/javax/swing/JTree.java +++ b/javax/swing/JTree.java @@ -73,7 +73,6 @@ import javax.swing.event.TreeWillExpandListener; import javax.swing.plaf.TreeUI; import javax.swing.text.Position; import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.DefaultTreeCellRenderer; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.DefaultTreeSelectionModel; import javax.swing.tree.ExpandVetoException; @@ -84,9 +83,7 @@ import javax.swing.tree.TreeNode; import javax.swing.tree.TreePath; import javax.swing.tree.TreeSelectionModel; -public class JTree - extends JComponent - implements Scrollable, Accessible +public class JTree extends JComponent implements Scrollable, Accessible { /** @@ -976,6 +973,8 @@ public class JTree /** * Returns the number of items currently selected. + * + * @return the number of selected accessibles. */ public int getAccessibleSelectionCount() { @@ -1192,6 +1191,7 @@ public class JTree */ protected TreeModelHandler() { + // Nothing to do here. } /** @@ -1266,6 +1266,7 @@ public class JTree */ protected TreeSelectionRedirector() { + // Nothing to do here. } /** @@ -1301,6 +1302,7 @@ public class JTree */ protected EmptySelectionModel() { + // Nothing to do here. } /** @@ -1583,8 +1585,6 @@ public class JTree public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); - revalidate(); - repaint(); } /** @@ -2344,6 +2344,7 @@ public class JTree } catch (ExpandVetoException ev) { + // We do nothing if attempt has been vetoed. } setExpandedState(path, false); fireTreeCollapsed(path); @@ -2372,6 +2373,7 @@ public class JTree } catch (ExpandVetoException ev) { + // We do nothing if attempt has been vetoed. } setExpandedState(path, true); @@ -2896,7 +2898,7 @@ public class JTree } } } - + /** * Sent when the tree has changed enough that we need to resize the bounds, * but not enough that we need to remove the expanded node set (e.g nodes |