JavaFx GUI user input
<p>I have a simple Java programme that runs a text based game. The user inputs commands to the console in order to play the game, a scanner then reads the input. I have built a GUI but how can I use this to submit user input the the console and execute the command </p>

<p>cheers</p>