ComboBox
has a valueProperty
.
You could use the Bindings API here:
b2.disableProperty().bind(bb.or(Bindings.isNull(comboBox1.valueProperty())));
(In JavaFX 8 you can use the Bindings API for the text too:
BooleanBinding bb = Bindings.isEmpty(addSubName.textProperty());
)