public static boolean isVisible(@NotNull JTable table, int row) {
    Rectangle visibleRect = table.getVisibleRect();
    int start = getLeadingRow(table, visibleRect);
    int end = getTrailingRow(table, visibleRect);
    return row >= start && row <= end;
  }
public static boolean isVisible(@NotNull JTable table, int row)