private void clear() { tableChooser.clear(); while (table.getColumnCount() > 0) { table.removeColumn(0); } addTableColumns(); }