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.
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.