i have a combobox with many countries created, and i wanna make that if you choose a country of that combobox, a new combobox with cities of that country appears, but it seems i cannot get the right if statement
here are the 2 comboboxes
and here is the condition on the statechanged.
i added a sout to see if the code reaches that, but nope
i also tried with Objects.equals(comboPais.getSelectedItem(), “España”) and comboPais.getSelectedItem().equals(“España”)