What is the FXML equivalent for this (cb is a ChoiceBox):
cb.getSelectionModel().select(1);
I tried something like this:
<ChoiceBox SelectionModel.select="1">
....
</ChoiceBox>
and
<ChoiceBox>
<SelectionModel select="1"/>
....
</ChoiceBox>
and a lot of similar variations, but those didn't work
if you using scene builder then try this in fxml.