usage of JOptionPane.showMessageDialog and showInputDialog
Hi all, a problem here.
Lets say in terms of GUI, I am only allowed to use JOptionPane.showInputDialog and showMessageDialog.
1. The inputDialog also happens to be my menu. It prompts user to key a number. After the user keys in a number, another inputDialog box appears prompting for another input number. I wish to make it such that : Keying in "1" will display whatever I wish to display in a message dialog box. Keying in "2" will RETURN me to the first original inputDialog box, keying in "3 will exit the whole thing.
I am just unsure how to do that. Do I have to use those event handling stuff or whatever?
2. Upon keying in "1" , my message dialog box is displayed. How do I code it such that when the user finish reading the output and upon clicking OK or simply closes the message dialog box, my inputDialog box appears immediately ....
I am just hoping for some brief example or explanation as I am totally unsure this requires event handling or just a series of IF ELSE will suffice. Thank you for your time.
Message was edited by:
Wind_Walker

