Java JTable Row Delete removeRow(JTable table, int row)

Here you can find the source of removeRow(JTable table, int row)

Description

remove Row

License

Open Source License

Declaration

public static void removeRow(JTable table, int row) 

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 removeRow(JTable table, int row) {
        ((DefaultTableModel) table.getModel()).removeRow(row);
    }/* w  w w. j a  v a 2 s  .  c  o  m*/
}

Related

  1. removeAllRows(JTable table)
  2. removeAllRows(JTable... tables)
  3. removeAllRowsFromTable(DefaultTableModel model)
  4. removeRow(int index, JTable table)
  5. removeRow(JTable table, int row)
  6. removeRows(int[] selectedRows, final JTable successTable)