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.
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:
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.
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.