This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 423
Hi!

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

Thank you!
Roel De Nijs
Sheriff

Joined: Jul 19, 2004
Posts: 7233
    
  29

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
OCAJP 7
 
Have you checked out Aspose?
 
subject: defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE
 
It's not a secret anymore!