Rob Camick wrote:Read the section from the Swing tutorial on Stopping Automatic Dialog Closing.
I get from that that I can set a specific action needed to close the window. But I honestly dont know how to use that to check if what the user entered was an int where required and a double where required. I apologize for my noobness, I am taking my first
Java class ever and trying to learn quite a bit about its many functions.
The only section that I think would fit what Im trying to do is...
If i understand this, I would add this to my code and put in the values I was checking, and if they were not true, the window woudnt close. I would also need to make the changes to my frame class where it is set to exit on close now. But Even if I am right with my understanding here, I do not know how to tell it to check for an int value and then a double value.