If item in the first combo box is selected then I want to be able to populate the second combo box with the associated items
ChoiceBox cbDestination = new ChoiceBox(FXCollections.observableArrayList(
"Krakow",
"Ios",
"Amsterdam"));
ChoiceBox cbAccommodation = new ChoiceBox();
if (cbDestination.getValue().ToString() == "Krakow" ) {
cbAccommodation.setItems(FXCollections.observableArrayList(
"Your Place",
"Flames"));
} else if (cbDestination.getValue().ToString() == "Ios" ) {
cbAccommodation.setItems(FXCollections.observableArrayList(
"Homers",
"Marias"));
} else {
cbAccommodation.setItems(FXCollections.observableArrayList(
"Old Quarter",
"St.Christophers Inn"));
}