In the actionlistener you need to retrieve the value from the textfield.
System.out.print(myInput.getText());
At the moment, you are getting a empty value because at the point where you call getText() there is nothing in the textfield because the user did not have time to type something.