• Post Reply Bookmark Topic Watch Topic
  • New Topic

windowlistener  RSS feed

 
kedar parundekar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is difference between windowClosing() & windowClosed() methods from WindowListener?
 
Darrin Cartwright
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The windowClosing() is called when the user selects the Close (Usually an "X") window decoration in the corner of the window. The windowClosed() is called after the dispose() method has been called on a window. Note that if you call setVisible(false); dispose();, the windowClosing() will not be called. Likewise, if the user selects the "close" window decoration, windowClosed() will not be called.
Hope that helps!

Darrin
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!