javafx how to transfer variable values from one controller to another [duplicate]
问题 This question already has answers here : Passing Parameters JavaFX FXML (11 answers) Closed 5 years ago . i am new to javafx and i want to transfer variable values from one controller to another and i have no idea how to do this. so please help me. for example: i want to display username from first login window to second dashboard window so what should i do to save userid in one variable and send it to second window and display there in a label . code test: import java.net.URL; import java