Hi everyone, I seem to be having trouble displaying a message dialog.My application requires user input to a textField in a specific format(say hh-mm-ss).And whenever user enters invalid i/p,a dialog should appear saying "this is the wrong format.Please enter in the format hh-mm-ss" and in the dialog there is only one button ok.when pressed the user should be prompted to enter i/p again.
I am using JOptionsPane.showMessageDialog which is showing the dialog,but my application hangs when i click ok.Can someone please help me with the listener for the ok button. Thanks, Thejaswini.
indeed. The way I validate user input is in this way:
Joined: Oct 19, 2005
Thanks John,Ken & Dieter...well my code is way too long to post completely.I will post only part of it...now i have written a custom dialog with ok button and a listener for tht.Please see if it makes any sense to you...I know am doing something wrong here but not able to figure it out...