I am currently working on JavaFX Project where i need to access an FXML Object from another class to show a ComboBox if the RadioButton is selected.
So for example I have 4 RadioButtons called
//First Controller
@FXML
private RadioButton radioButtonS1, radioButtonS2, radioButtonS3, radioButtonS4;
I have to read them out in the other Controller to set them visible my ComboBoxes are called:
//Second Controller
@FXML
private ComboBox comboS1A, comboS1E1, comboS1E2;
@FXML
private ComboBox comboS2A, comboS2E1, comboS2E2;
@FXML
private ComboBox comboS3A, comboS3E1, comboS3E2;
@FXML
private ComboBox comboS4A, comboS4E1, comboS4E2;
So how can I see in the SecondController which RadioButton is selected in the FirstController and make the CombBox visible?
Thanks.