Im trying to add a String to a javafx comboBox but i keep getting the above error :/
no suitable method found for add(String)
method Collection.add(CAP#
this is because the ComboBox elements type is not set so it's by defauld "?". like this :
ComboBox> room_id = new ComboBox<>();
so to force the fxml ComboBox to have String values you have to add something like this :
or set the observable list from code like this :
Java ComboBox .setItems (ObservableList < T > value)