As programmer, we have to make as easy as possible for user to input data. When it comes to input from JTable, and you have default of input choices to write into the selected row-column of table, it should be more easy if we use combo box isn’t?  So there is example of the way to make it able use JComboBox inside the JTable :

TableColumn statusColumn = jtable.getColumnModel().getColumn(6);
JComboBox cbStatus = new JComboBox();
cbStatus.addItem("false");
cbStatus.addItem("true");
statusColumn.setCellEditor(new DefaultCellEditor(cbStatus));

Simple and easy isn’t? Hope this post help you😉 and for info about my newest post, dont forget to :