I'm a beginner in Java programing.
I would like to know how the close the applet with the "Exit" button I have created to allow the user to close the applet without need to click onto the 'X' at the window top right hand-side button.
i use this code "System.exit(0);" to close the program but it seem don't work and a list on error display in the Dos by the Java compiler.

I don't understand why my can't workout because when i have referred to many Java reference book & most of the book use "System.exit(0);" to close the applet.
Pls advice

.. 10q