I have a category table, contains categoryid & categoryname
I want to display combo box category in ProductMsFXML.fxml
I have Category Class like this
In the file ProductMsFXMLController.java, I coded like this below
I want the program display CategoryName in cboCategory combo box, but when I selected the combo box, I can save the categoryid in the table ProductMs. How to do that ?
Currently when I run for the input menu ProductMs, the combo box doesn't display CategoryName.