Hi, I am a beginner. I am not sure if the below point I give is the most suitable one. Anyone plesae point out if it is wrong.
Flaviostz, if I were you, I will add a static boolean variable. In the textfield, add one actionListener that will always detect if anything has been keyed into it, and validate the input. At the same time, adjust the boolean variable, for example, to True if something has been keyed.
Maybe that can help you?
Nelson Chan
|