Java JTable Row Visible getFirstVisibleRow(JTable p_Table)

Here you can find the source of getFirstVisibleRow(JTable p_Table)

Description

get First Visible Row

License

Open Source License

Declaration

public static int getFirstVisibleRow(JTable p_Table) 

Method Source Code

//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*/
}

Related

  1. computeVisibleRowsCount(JTable table)
  2. ensureRowVisible(JTable table, int row)
  3. ensureRowVisible(JTable table, int row)
  4. getFirstVisibleRowIndex(JTable table)
  5. getLastVisibleRow(JTable p_Table)
  6. getLastVisibleRow(JTable p_Table)
  7. getLastVisibleRowIndex(JTable table)