wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE" Watch "defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE" New topic

defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE

Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417

Which one should I use for the defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE?

Thank you!
Roel De Nijs

Joined: Jul 19, 2004
Posts: 5126

Hi Leandro,

I used this line of code: setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Kind regards,

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
I agree. Here's the link: http://aspose.com/file-tools
subject: defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE
Similar Threads
Visibility help?
Understanding System.exit
Closing my application (frame)
Question about splach screen + Jframe