This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Applets and the fly likes why won't my pop up window close? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "why won Watch "why won New topic
Author

why won't my pop up window close?

tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
I open a window when an alert has happened, but if I try to click the x button in the top right corner, it won't close. Do I have to do something to build that functionality into the window? Heres my code. Thanks.

[ June 05, 2002: Message edited by: tyler jones ]
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Tyler,
Since you are doing this from an Applet (assumption since this is the applet forum) you can't use System.exit() call. You can however use the dispose method:

Regards,
Manfred.
abhi zulu
Greenhorn

Joined: May 18, 2002
Posts: 14
Rather than doing it this way just create a constructor of ur frame & set all the parameters for the frame like setSize setVisible in the constructor.
add ur window adapter method also in that
it will work fine.
tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
Thanks for the help, but that didn't get the window to close. Here's my complete code. Maybe I'm doing something else that's keeping it from being able to close? Thanks.
tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
Nevermind, I figured out what I needed to do to make it work. Thanks for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why won't my pop up window close?