Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1400 > unrolled thread

How to connect to other J

Started by"d" <d@THRWHITE.remove-dii-this>
First post2011-04-27 15:33 +0000
Last post2011-04-27 15:33 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.gui


Contents

  How to connect to other J "d" <d@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
    Re: How to connect to oth "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
    Re: How to connect to oth "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000

#1400 — How to connect to other J

From"d" <d@THRWHITE.remove-dii-this>
Date2011-04-27 15:33 +0000
SubjectHow to connect to other J
Message-ID<461656e3$1@127.0.0.1>
  To: comp.lang.java.gui
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#1401 — Re: How to connect to oth

From"Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this>
Date2011-04-27 15:33 +0000
SubjectRe: How to connect to oth
Message-ID<D8uRh.247888$ia7.117149@newsfe14.lga>
In reply to#1400
  To: comp.lang.java.gui
d wrote:
> 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 
> 
> 

Call setVisible(false) on the first JFrame.

-- 

Knute Johnson
email s/nospam/knute/

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#1404 — Re: How to connect to oth

From"tar" <tar@THRWHITE.remove-dii-this>
Date2011-04-27 15:33 +0000
SubjectRe: How to connect to oth
Message-ID<ymips6h0ys6.fsf@sevak.isi.edu>
In reply to#1400
  To: comp.lang.java.gui
"d" <a> writes:

> 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();


-- 
Thomas A. Russ,  USC/Information Sciences Institute

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web