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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
Author

defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE

Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
Hi!

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

Thank you!
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5233
    
  12

Hi Leandro,

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

Kind regards,
Roel

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
wood burning stoves
 
subject: defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE