Java JTable Row isRowInsert(TableModelEvent e)

Here you can find the source of isRowInsert(TableModelEvent e)

Description

is Row Insert

License

Open Source License

Declaration

public static boolean isRowInsert(TableModelEvent e) 

Method Source Code

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

import javax.swing.event.TableModelEvent;

public class Main {
    public static boolean isRowInsert(TableModelEvent e) {
        return (e.getType() == TableModelEvent.INSERT && e.getFirstRow() >= 0);
    }/*from  w w  w.  j  a va2s .  c o m*/
}

Related

  1. getRowByValue(TableModel model, Object value)
  2. getTableRow(TableModel tableModel, int row)
  3. hasRows(JTable table)
  4. insertRow(final JTable table, final int index, Object... data)
  5. isFirstToLastRow(TableModelEvent e)
  6. jtable$convertRowIndexToModel(JTable table, int index)
  7. makeIntoMoveRowUpButton(final JTable table, JButton button)
  8. packRows(JTable table, int start, int end, int margin)
  9. removeTableRows(DefaultTableModel model)