I'd like to bind a single collection to multiple ChoiceBox's in FXML. However the only way I know how is using:
<ChoiceBox fx:id="cb00" prefWidth="150.0" GridPane.rowIndex="0" GridPane.columnIndex="0">
<items>
<FXCollections fx:id="test" fx:factory="observableArrayList">
<String fx:value="1" />
<String fx:value="2" />
<String fx:value="3" />
<String fx:value="4" />
<String fx:value="5" />
<String fx:value="6" />
<String fx:value="7" />
<String fx:value="8" />
<String fx:value="9" />
</FXCollections>
</items>
</ChoiceBox>
Is it possible to declare the collection in the controller and refer to it in FXML instead of copying the collection for each ChoiceBox?
