Hi Warren,
Welcome to the Ranch!
Looks like you have a great start there, and thank you so much for
using code tags - that makes it much easier for everyone to read and help you.
Now, think through the flow of your
collectInput() method, and in particular
when is the
inputField.getText() statement being run? Is it after the "Submit" has been pressed?
No, it's part of the
collectInput() method run. The call is being made, it is just that the
inputField is still set to be empty at that time.
You will want to think about where the
getText call should be in order to retrieve data
after the Action has been Performed.
You may also want to check out the
Java Tutorial on Text Fields, as the
TextDemo.java file there gives you a good idea on how to accomplish this if you are not sure.
Cheers!
Chris