This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
javascript closing windows
Regarding closing an applet
applet terminating
closing applet by clicking button
how to close an html window by clicking an applet button ?