Here you can find the source of insertRow(final JTable table, final int index, Object... data)
public static void insertRow(final JTable table, final int index, Object... data)
//package com.java2s; //License from project: Apache License import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class Main { public static void insertRow(final JTable table, final int index, Object... data) {/*from ww w . j a v a 2 s. co m*/ ((DefaultTableModel) table.getModel()).insertRow(index, data); } }