Could someone tell me how can I assign 2 column values to the JComboBox from mysql database. I want to hide one of the column and show only the other one. however, when retrieving the selected value from the combobox, I want to get the hidden value associated with the selected item.”
Share
Store objects in your combo box:
This is just an example: you should choose more meaninful names for the class and the fields.