• Post Reply Bookmark Topic Watch Topic
  • New Topic

event of Closeing JFrame

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all..
i have one JFrame which has one Button on Click it is opening another JFrame.
i want to do something when the 2nd window is closed..
how can i do that?
Help me..
Thanks in advance..
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add a windowListener to frame2, and in windowClosing() put your code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!