I have a combobox which I am filling with database query, my combo box must be different for each row, but when adding it, it shows me the combo box with the same data for all.
I add it with this method
CComboBox priceListVersionComboBox = new CComboBox(priceListVersion);
TableColumn col = table.getColumnModel().getColumn(COLUMN_PRICELIST);
col.setCellEditor(new DefaultCellEditor(priceListVersionComboBox));
My ComboBox It is filled by
KeyNamePair[] priceListVersion = getMPriceListVersion((Integer)table.getValueAt(i, COLUMN_PRODUCTID));
How do I add the value of the current combobox per row and the previous ones keep them?