I have a jtable with 4 columns where the last column has a combo box,
sample code
String[] colNames = {"Name","Email","Department","Status"};
TableModel model = new DefaultTableModel(colNames,200);
table.setModel(model);
TableColumn statusCol = table.getColumnModel().getColumn(3);
comboBox = new JComboBox();
comboBox.addItem("Approver");
comboBox.addItem("Senior Manager");
statusCol.setCellEditor(new DefaultCellEditor(comboBox));
Here the comboBox has 2 options approver and senior manager, I am looking for a way to add condition as, only one senior manager in the table?