How can i make my java program send a MySQL Update query when i click on the exit button? i tried to use WindowClosing or whatever, but it takes like 5 seconds to close the program and it still never sends the mysql query.
Printable View
How can i make my java program send a MySQL Update query when i click on the exit button? i tried to use WindowClosing or whatever, but it takes like 5 seconds to close the program and it still never sends the mysql query.
Please go through the Forum Rules, particularly the third paragraph.
db
Sorry.
Am i able to edit the title?
What did your research tell you? Did you search the forums, or the internet? There are possibly hundreds (more like thousands) of code examples and/or tutorials online. Adapting the code to your project requires some understand of what its doing, and if you don't or have problems doing so consult the API, and/or post an SSCCE with a specific question
Edit the post and click 'Go Advanced'
db
@OP: I merged your two threads; please don't double post.
kind regards,
Jos