wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to close applet on click of a button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to close applet on click of a button" Watch "How to close applet on click of a button" New topic
Author

How to close applet on click of a button

Vishnu Murthy
Ranch Hand

Joined: Jan 04, 2001
Posts: 56
I have created an applet having some buttons and also a button "close".
what i want is on click of the close button the applet should close. i have tried with system.exit(0) with in a userdefined function to close the applet window, but i am not able to close the applet window.
kindly send me the code which will close the window.
thanks in advance
vishnu
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
hi Vishnu,
Why do u need to close the applet? in fact applet are supposed to be closed when the browser window containing them is closed by the user.System.exit() does not work with applet.


regards
deeksha
 
wood burning stoves
 
subject: How to close applet on click of a button
 
Similar Threads
applet terminating
closing applet by clicking button
how to close an html window by clicking an applet button ?
javascript closing windows
Regarding closing an applet