Here you can find the source of getFirstVisibleRow(JTable p_Table)
public static int getFirstVisibleRow(JTable p_Table)
//package com.java2s; //License from project: Open Source License import java.awt.Point; import javax.swing.JTable; public class Main { public static int getFirstVisibleRow(JTable p_Table) { Point p = p_Table.getVisibleRect().getLocation(); return p_Table.rowAtPoint(p); }/*from www .j a va 2 s. com*/ }