I\'ve been looking for this quite a long time before and I can\'t find any question about this nor topic, I am assuming it might be impossible to do, though it seems odd as the
Use a DefaultTableModel <- see docs more contructors
DefaultTableModel model = new DefualtTableModel(String colNames, int rows);
JTable table = new JTable(model);
Then you can use one of the following methods
Or