Results 1 to 3 of 3
  1. #1
    asifzbaig is offline Member
    Join Date
    May 2011
    Posts
    56
    Rep Power
    0

    Default Applying action event on window closing?

    Hello everyone........

    Please guide me that how can i apply an action event on window closing action??

    Actually, in my swing application i have to store the information of current users that logged in into the database and this information is updated as user logged of, i have provided a button with logout actions but error occurred when user directly closes the application from taskbar or taskmanager or window close button as from these actions my databse is not update and next time if user wants to login, the control checks the database and throws the message that user is already logged on...

    I can't neglect my login control check as it is necessary for other reasons too...so what can i do now???

    Tell me if i can bind window closing action with logout button action or i have to do something else??

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,227
    Rep Power
    6

  3. #3
    asifzbaig is offline Member
    Join Date
    May 2011
    Posts
    56
    Rep Power
    0

Similar Threads

  1. Brand new to java ... window is closing
    By drw4d in forum New To Java
    Replies: 5
    Last Post: 03-20-2011, 05:48 PM
  2. Stop action event in JDialog
    By eleda in forum New To Java
    Replies: 2
    Last Post: 10-15-2010, 03:24 AM
  3. Refresh Opener Window after serlvet action
    By mtyoung in forum Java Servlet
    Replies: 1
    Last Post: 12-19-2008, 07:10 AM
  4. how can we call Logout servlet by closing window
    By nagesh1811 in forum Java Servlet
    Replies: 2
    Last Post: 07-11-2008, 07:41 AM
  5. Action Event and Listeners
    By lost1 in forum New To Java
    Replies: 3
    Last Post: 11-14-2007, 04:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •