And here come some API docs for the fixed method.
2006-10-09 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/JTree.java
(isSelected): Added API docs.
/Roman
Index: javax/swing/JTree.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTree.java,v
retrieving revision 1.75
diff -u -1 -5 -r1.75 JTree.java
--- javax/swing/JTree.java 8 Oct 2006 22:22:28 -0000 1.75
+++ javax/swing/JTree.java 8 Oct 2006 22:36:36 -0000
@@ -2421,30 +2421,40 @@
public TreePath[] getSelectionPaths()
{
return selectionModel.getSelectionPaths();
}
public int[] getSelectionRows()
{
return selectionModel.getSelectionRows();
}
public boolean isPathSelected(TreePath path)
{
return selectionModel.isPathSelected(path);
}
+ /**
+ * Returns <code>true</code> when the specified row is selected,
+ * <code>false</code> otherwise. This call is delegated to the
+ * [EMAIL PROTECTED] TreeSelectionModel#isRowSelected(int)} method.
+ *
+ * @param row the row to check
+ *
+ * @return <code>true</code> when the specified row is selected,
+ * <code>false</code> otherwise
+ */
public boolean isRowSelected(int row)
{
return selectionModel.isRowSelected(row);
}
public boolean isSelectionEmpty()
{
return selectionModel.isSelectionEmpty();
}
/**
* Return the value of the <code>dragEnabled</code> property.
*
* @return the value
*