Re: close a window



"Regina" <reginacarmela@xxxxxxxxx> wrote in message
news:1132933976.068127.201220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> How can I close a window using a JButton?

Assuming you mean java.awt.Window, you can call its dispose() method to
get rid of it forever, or its setVisible(false) method to temporarily hide
it.

- Oliver


.


Quantcast