Basically what I am trying to do is have the player respond to a message in which they are required to input numbers only. From that point, I could parse the String into an int and use it towards the rest of my code. Also, I am trying to make it so this occurs in my event method. Any help is greatly appreciated!
I am coding something similar right now, if you already have a text field, you can add a "Done" button, in the method actionPerformed() you can use a switch for button's IDs, well then you do input = yourTextField.getText(); but i am not sure if you were looking for this.