java JTextField getText () method to get the string how to convert to int type
There is something wrong with your code, from the exception it looks like the string is not passed in, if you enter a number there is no For input string: "", check your code to see if the input string is passed to where you want to force the conversion.