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
Right now, you have to do it via Java code in the Controller class. There is a pending enhancement request already submitted to handle this in the FXML. It looks very similar to your posting here.