closing a window


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: closing a window

  1. #1
    Join Date
    Nov 2004
    Posts
    32

    closing a window

    cheers pertert, for trying to help anyway dude!!

    i want to close my window i have opened when i click on the 'x' next to the minimize and maximise buttons, how is this done?

    N

  2. #2
    Join Date
    Sep 2004
    Posts
    223
    this code does that for you:

    Code:
    addWindowListener(new WindowAdapter(){
                public void windowClosing(WindowEvent e){
                    System.exit(0);
                }});
    A kram a day keeps the doctor......guessing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center