• Post Reply Bookmark Topic Watch Topic
  • New Topic

WindowListener not being called when clicking X to close window

 
Alan Smith
Ranch Hand
Posts: 185
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have added a windowListener to my JFrame but for some reason it is not being called when I click X to close the window. I need to send a message to a server to notify it that the client window is closed. Some code snippets below (some lines excluded for brevity):



Any ideas?


This is resolved, needed to use...

... instead.
 
Campbell Ritchie
Marshal
Posts: 52516
118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done sorting it out and showing us the solution
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!