Java JTable Row Add addRow(JTable table, Object... data)

Here you can find the source of addRow(JTable table, Object... data)

Description

add Row

License

Open Source License

Declaration

public static void addRow(JTable table, Object... data) 

Method Source Code

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

Related

  1. addNewRow(int index, JTable table, DefaultTableModel tableModel)
  2. addRowsToTable(Vector rows, int colCount)
  3. addRowToJTable(final JTable table, final Object[] data)
  4. addRowToTable(JTable table)
  5. appendRow(JTable table, Object[] row)