A JComboBox
may be used as a cell editor, but you want a similar appearance for the cell renderer. Two alternative approaches for this are examined here:
Add an arrow to a
DefaultTableCellRenderer
.Use a
ComboBoxRenderer
thatextends JComboBox
andimplements TableCellRenderer
.