• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

defaultCloseOperation: EXIT_ON_CLOSE or DISPOSE_ON_CLOSE

 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

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

Thank you!
 
Roel De Nijs
Sheriff
Posts: 10414
133
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Leandro,

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

Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic