This method was introduced to prevent scrolling to the top left corner
when starting the editing session. This seems fixed in some other way
now, and the method just unnecessarily inhibits the text area auto
scrolling when editing texts longer than the cell content.
2006-05-15 Audrius Meskauskas <[EMAIL PROTECTED]>
* javax/swing/JTable.java (TableTextArea.scrollRectToVisible):
Removed.
Index: JTable.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/JTable.java,v
retrieving revision 1.101
diff -u -r1.101 JTable.java
--- JTable.java 8 May 2006 13:58:35 -0000 1.101
+++ JTable.java 15 May 2006 11:28:43 -0000
@@ -1272,17 +1272,6 @@
{
setBorder(BorderFactory.createLineBorder(getGridColor(), 2));
}
-
- /**
- * With not this method overridden, the scroll pane scrolls to the
- * top left cornec (untranslated position of the caret) after the first
- * keystroke.
- */
- public void scrollRectToVisible(Rectangle r)
- {
- // Do nothing here. If the editing session starts outside the visible
- // bounds, the editCellAt will scroll.
- }
}