Closing JFrame

Discussion in 'Java' started by Thomas Hawtin, Jul 29, 2006.

  1. Thomas Hawtin, Jul 29, 2006
    #1
    1. Advertising

  2. Thomas Hawtin

    cp Guest

    "Eitan M" <no_spam_please@nospam_please.com> wrote in message
    news:eafch5$9q7$...
    > Hello,
    > How can I close the current JFrame component (from the JFrame component) ?
    >
    > Thanks :)
    >
    >

    Assuming jf is your JFrame:
    jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     
    cp, Jul 29, 2006
    #2
    1. Advertising

  3. Thomas Hawtin

    Eitan M Guest

    Hello,
    How can I close the current JFrame component (from the JFrame component) ?

    Thanks :)
     
    Eitan M, Jul 29, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Vk1J?=

    Closing popup window when closing parent window?

    =?Utf-8?B?Vk1J?=, Feb 14, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    658
    Thomas Hansen
    Feb 15, 2007
  2. jakester
    Replies:
    3
    Views:
    1,843
    jakester
    Apr 3, 2007
  3. thomas
    Replies:
    0
    Views:
    231
    thomas
    Oct 23, 2003
  4. Jesper Johnsen

    Closing/Despose of JFrame

    Jesper Johnsen, Jun 28, 2012, in forum: Java
    Replies:
    13
    Views:
    788
  5. Replies:
    2
    Views:
    419
    markspace
    Aug 27, 2012
Loading...

Share This Page