Hi all,
I need to the chage this program. The Switches class uses a combination of an IF satatement and a SWITCH.I need to rewrite the buttin handler to use just a SWITCH statement.
I tried to change the programe using an another case in switch statement as :
Case 'Q' : case 'q'
utWindow.dispose();
System.exit(0);
It did not work, it worked only when I passed the integers .But This is worng. Once I type "Q or q" in the textfield and press enter, the window should be closed.It is not happening so.
Please give me an idead ,how to change the program.
Thanks in advance.