I feel like I'm overlooking something, but I have been stuck with this problem for a few days. I have a variable that i want to represent the value in a JTextField, the problem is my variable is an int, and JTextField.getText() returns a string. Obviously i can't just cast it( or can I?)... so do I have to go in and change each letter in the JTextField into hexadecimal and then into a number value, or is there a method or class that does this for me?
Thank you for your help(even if this was easy for you).