Here you can find the source of newTable(String name, Object[][] rowData, Object[] columnNames)
public static JTable newTable(String name, Object[][] rowData, Object[] columnNames)
//package com.java2s; import javax.swing.JTable; public class Main { public static JTable newTable(String name) { JTable table = new JTable(); table.setName(name);/*from w ww . java 2 s. c om*/ return table; } public static JTable newTable(String name, Object[][] rowData, Object[] columnNames) { JTable table = new JTable(rowData, columnNames); table.setName(name); return table; } }