import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
public class Main {
public static void main(String[] argv) throws Exception {
DefaultTableModel model = new DefaultTableModel();
JTable table = new JTable(model);
// Disable autoCreateColumnsFromModel
table.setAutoCreateColumnsFromModel(false);
}
}
|