Hi
I created 2 JFrame forms. After I clicked first JFrame, it open the second
JFrame. I would like to close the first JFrame when second JFrame is open.
How can I do ?
private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
SelectFacilities selectfac = new SelectFacilities();
selectfac.setVisible(true);
Thx
Ringo
Knute Johnson - 06 Apr 2007 17:00 GMT
> Hi
>
[quoted text clipped - 10 lines]
> Thx
> Ringo
Call setVisible(false) on the first JFrame.

Signature
Knute Johnson
email s/nospam/knute/
Thomas A. Russ - 07 Apr 2007 02:16 GMT
> Hi
>
> I created 2 JFrame forms. After I clicked first JFrame, it open the second
> JFrame. I would like to close the first JFrame when second JFrame is open.
> How can I do ?
firstFrame.setVisible(false);
or
firstFrame.dispose();

Signature
Thomas A. Russ, USC/Information Sciences Institute