How to send text to other window in javafx?

There are two Windows, two controllers, how do I from one window to transmit the text to another window??
I tried to call the constructor of the second window for transmission of text in the main window, but the Controller of the second window is called probably before the call of the window, and so I have a variable String instead of null.
June 27th 19 at 14:58
1 answer
June 27th 19 at 15:00
Solution
The issue, he realized.
You can pass with the constructor of a class that is called in the controller main class. For example, to run the window by clicking on the button, in this case, the controller has the method on the button, which is passed to the constructor, and all=)

Find more questions by tags JavaFX