Search code examples
javaswingjtablejcombobox

How to add a JCombobox in a JTable and fire its action inside of the JTable?


Actually I want to add a JCombobox in a JTable and fire its action within the JTable. I am using Netbeans, and I need to know where exactly I should put the code. Thank you for your cooperation and time. Best regards.


Solution

  • You can simply add a JComboBox to a JTable if you can follow this tutorial which describes how to use a Combo Box as an Editor, another examples about TableCellEditor are here.