Java JTable Column newTable(String name, Object[][] rowData, Object[] columnNames)

Here you can find the source of newTable(String name, Object[][] rowData, Object[] columnNames)

Description

new Table

License

Open Source License

Declaration

public static JTable newTable(String name, Object[][] rowData, Object[] columnNames) 

Method Source Code


//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;
    }
}

Related

  1. isColumnSorted(JTable table, int column)
  2. isNotDuplicateKeyOfTable(String text, TableModel model, int column)
  3. layoutColumns(JTable p_Table, boolean p_OnlyVisibleRows)
  4. loadToTableModel(String fileName, Object[] columns)
  5. makeTablePanel(int rows, int cols, int mainColumn, JComponent components[])
  6. pack(JTable table, boolean packColumns, boolean packRows, int padding)
  7. ponerAncho(TableColumn loColumn, int plAncho)
  8. removeColumn(int index, JTable table)
  9. selectByTyping(JTable table, javax.swing.JTextField textfield, int column)