Java tutorial
//package com.java2s; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class Main { public static void LimpaTabela(JTable tabela) { DefaultTableModel apaga = new DefaultTableModel(new String[0][0], new String[0]); apaga.setRowCount(0); tabela.setModel(apaga); } }