Here you can find the source of isRowInsert(TableModelEvent e)
public static boolean isRowInsert(TableModelEvent e)
//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*/ }