File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why won't my pop up window close?

 
tyler jones
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic