Here you can find the source of addRow(JTable table, Object... data)
public static void addRow(JTable table, Object... data)
//package com.java2s; //License from project: Open Source License import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class Main { public static void addRow(JTable table, Object... data) { ((DefaultTableModel) table.getModel()).addRow(data); }/* ww w . jav a2 s . c om*/ }