Clearing Last Selected Value JCombobox when ComboBoxModel Becomes Empty
问题 Here is a scenario: I have two JComboBoxes (call them combo1 and combo2 ) that get their values from a database [In the DB, these two have a 1:M relationship]. When the screen shows up I populate combo1 with values from the database and then take the first entry in the list and get its corresponding values to populate combo2. Since the values of combo2 depend on what is selected in combo1, every time the selection changes in combo1 a call is made to the database to get matching values to