In the button's ActionListerner, you call the Window/Frame's setVisible(false) or dispose method. Dispose is for when you don't plan to open in again soon.
Signature
Canadian Mind Products, Roedy Green. http://mindprod.com Java custom programming, consulting and coaching.
Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...