Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4237257

scrollRectToVisible does not display last entry in a table

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • client-libs



      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)
      ======================================================================

            Unassigned Unassigned
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: