Here you can find the source of removeRows(int[] selectedRows, final JTable successTable)
public static void removeRows(int[] selectedRows, final JTable successTable)
//package com.java2s; //License from project: Apache License import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class Main { public static void removeRows(int[] selectedRows, final JTable successTable) { DefaultTableModel model = (DefaultTableModel) successTable .getModel();//from w w w. java2s.c om for (int i = selectedRows.length - 1; i > -1; i--) { model.removeRow(selectedRows[i]); } } }