Now I have 2 classes. The first one is called UIController and the other one is called MainJFrame.
I would like to know how to make a listener for a JFrame which has a JComboBox inside. Everytime a ComboBox submit a new data the JFrame will tell the UIController that there is a change and the UIController can retrieve the message from what the users put.
I don't know how to do it since if I use actionListener then I have to check whether the action is from the JComboBox or not. However, in the UICOntroller, there is only MainJFrame class.
I want to use the UIController to receive command from the user and then the UIController will decide what to do with the other part of GUI...
Thank you very much.