Hello,
I wrote a GUI app in Jython (using Java Swing) which uses database. The application remains connected for its whole run time until the main window is closed (JFrame, using defaultCloseOpe ration = JFrame.EXIT_ON_ CLOSE).
Now, when exiting, I would like to make sure I explicitly close the database connection. Is there any function, like _atexit() in C, where I could place my code?
Thank you very much.
Search Result
Collapse
2 results in 0.0040 seconds.
Keywords
Members
Tags
-
cleanup actions on sys.exit()
-
Uniform Formatting
I currently have a database with a field phone numbers however there are roughly 10000 records and 45-50 different entry styles.
I have now set up an input mask however I amk wondering how I could automate a clean up of them into the standard !(###) ###-####