Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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