Thread: Exit button

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    231
    Rep Power
    16

    Exit button


    Hi,

    I created a frame which has an exit button. How do I close the frame when clicking on the exit button without closing the application? If I used System.exit(0), it would close everything.

    Thanks.
  2. #2
  3. Lord of the Dance
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Oct 2003
    Posts
    4,109
    Rep Power
    2010
    Have you tried with setVisible(false)?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    231
    Rep Power
    16
    Thank you! It worked for me.

IMN logo majestic logo threadwatch logo seochat tools logo