This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 5455

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:
subject: defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE