Java FX changing value of Label from different scene
I have two scenes. The first scene invokes second scene using the following code. @FXML private void confirmation(ActionEvent event) throws IOException{ Stage confirmation_stage; Parent confirmation; confirmation_stage=new Stage(); confirmation=FXMLLoader.load(getClass().getResource("Confirmation.fxml")); confirmation_stage.setScene(new Scene(confirmation)); confirmation_stage.initOwner(generate_button.getScene().getWindow()); confirmation_stage.show(); } There is a label in "Confirmation.fxml" called "Proceed". I need to change the content of that label from within this function and return