Java JTable Row contains(int row, TableModel model)

Here you can find the source of contains(int row, TableModel model)

Description

contains

License

Open Source License

Declaration

protected static boolean contains(int row, TableModel model)
    

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.table.TableModel;

public class Main {
    protected static boolean contains(int row, TableModel model)
    /*     */{/*from w  ww. j a  v a2  s .co m*/
        /* 102 */if (model == null) {
            /* 103 */return false;
            /*     */}
        /* 105 */if (row < 0) {
            /* 106 */return false;
            /*     */}
        /*     */
        /* 109 */return row < model.getRowCount();
        /*     */}
}

Related

  1. checkRow(DefaultTableModel table, List data, int row)
  2. clearAllRows(JTable table)
  3. copyRows(JTable table)
  4. createDBXMLFile(JTable table, String docField, String rowField, Connection con, boolean reuseConnection, String driver, String dsn, String user, String password, String tableName, String whereString, String orderByString, String groupByString, boolean convertCharsToEntites)
  5. createThrowableMessage(Throwable t)
  6. deleteRows(final int[] sortedRows, final List list, final AbstractTableModel model)