private void clearModel(ComboBoxTableModel model) { int rows = model.getRowCount(); while (0 < rows) { model.removeRow(0); rows--; } }