Reading in an int from a JTextField?
So I have three text fields (name, X, and Y) and a method that moves an image (whose name corresponds to the 'name' entered by the user in the text fields) to position X and Y based on what the user inputs in those text fields once a button is clicked.
The name passes okay, but I have no idea how to parse the X and Y values so they're left as question marks :/
Thanks if you could point me in the right direction
EDIT: Figured it out. sorry. Just used:
Re: Reading in an int from a JTextField?
Can you explain what you are trying to do.
how to parse the X and Y values so they're left as question marks
Are x and y int variable?
Is the question mark you talk about a String: "?"