Код: Выделить всё
public class Country {
private String name;
public String getName() {
return name;
}
}
Код: Выделить всё
BooleanBinding noCountryBinding = Binding.isNull(cmbCountry.valueProperty());
BooleanBinding isGermanyBinding = Binding.equal(cmbCountry.getSelectionModel().selectedProperty().get().getName(), "Germany"); //
Подробнее здесь: [url]https://stackoverflow.com/questions/79200593/javafx-binding-for-selection-of-specific-combobox-value[/url]
Мобильная версия