I have a text field in the primary stage. I want to retrieve the value entered in the primary stage and print it in the second stage as text. How do I inherit the value?

i.e. secondaryStage.Text = primaryStage.TextField

I am quite new to JavaFx, and I'm really enjoying it. Please help