Next, you must free the memory used by the form. This is the last operation in the main functionmethodfunction of the program.
theForm.destroy( ); }
catch (Exception ex) { ex.printStackTrace( ); } }