• Post Reply Bookmark Topic Watch Topic
  • New Topic

Window listener  RSS feed

 
Tomek Rej
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running a client/server application where clients connect to a server by running an applet on a Web browser. When the client presses the close button on the frame I can detect that this using a window listener and send a message to the server informing the server to close the socket connection. However when the user exits the Web browser itself, I don't know how to detect this and the server is not aware that the client has logged off even though it has.
Does anyone know how I can detect events which occur outside the frame (the close button on the Web browser)?
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm unused to applets and there is an AppletForum - however:
can't you just override the 'destroy'-method of the applet(, and replace the print-statement with your code)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!