Change label text in a new scene which was entered in different scene (javafx)
问题 I'm trying to change a text in a label, a text which was entered in a text field in a different scene. I made 2 FXML files, the first one contains a textfield and "ok" button, the second one contains a label(with the text "Label"). My goal is to enter a text in the textfield, and when I press "ok"-> open the new scene and the label will change it's text to the text I entered in the text field. I easily changed the label text when the label, the textfield and the ok button were all in the same