K. Tsang wrote:Have you written code to generate the random number? You know this generated number is a double right?
Do you know how to get the value of the JTextField? This value is a string even if you enter digits.
Do you need to do the checking on the fly immediately when the cursor looses focus or when the submit button is clicked?