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 =...