Code: Exit ButtonCode

I use above example for show that. There have Exit button(jButton2). When you press Exit button it should close the forms. To that there have another simple code.

First double click on the exit button(or right click >> Event >> actionPerformed). Now it show the relevant methode. Then type this code.

this.dispose();

Now its OK. If you press Exit button it will close. Amazing....

You can leave a response, or trackback from your own site.

0 Response to "Code: Exit ButtonCode"

Post a Comment

Powered by Blogger
Creative Commons License
Expert by kalpa prasad gamage is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at swowner.blogspot.com.
Permissions beyond the scope of this license may be available at http://swowner.blogspot.com/.