JDK-4237257 : scrollRectToVisible does not display last entry in a table
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-05-11
  • Updated: 1999-05-11
  • Resolved: 1999-05-11
Related Reports
Duplicate :  
Description

Name: skT88420			Date: 05/11/99


When adding a row to a JTable in a JScrollPane I select the new row and attempt to make sure that it is visible. I do this by calling the getCellRect(row, column, true) method and using the rectangle returned as the parameter for a scrollRectToVisible() call. This works except when the row I have added is the last one in the table. The row is just below the Viewport's base and I have to click on the scroll bar to scroll down one more row. I have not tried this in a Soloaris environment so I don't know if it is a problem there too. I tried increasing the y cooordinate of the rectangle object before calling the scrollRectToVisible() method, to no avail.
(Review ID: 58038) 
======================================================================

Comments
WORK AROUND Name: skT88420 Date: 05/11/99 Don't know of one ======================================================================
11-06-2004