Beispiel #1
0
 private void ensureRowIsVisible(int nRow) {
   Rectangle visibleRect = table.getCellRect(nRow, 0, true);
   if (debugSetPath) System.out.println("----ensureRowIsVisible = " + visibleRect);
   if (visibleRect != null) {
     visibleRect.x = scrollPane.getViewport().getViewPosition().x;
     table.scrollRectToVisible(visibleRect);
     table.repaint();
   }
 }