🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16969

Re: How can I switch frames?

#16969
From: Jonathan
Date: Thu, 07 Jan 1999 00:00
25 lines
1090 bytes
just aslong as you have the same package name, this is simple

in the button click function put:

    Frame2  f2 = new Frame();
    f2.show();
    this.setVisible(false); // makes current frame invisible





Marcel Hell wrote in message <770t3d$e0n5@forums.borland.com>...
>Hi !
>I have made an application with JBuilder, where Frame1 was automattically
>created. I have an AWT Button there.
>Then I create a new Frame (Frame2) via the File-->New Menu.
>How can I make Frame 1 dissapear and Frame 2 appear when the Button is
>pressed?
>
>Thanks for any hints
>
>Marcel
>
>
Technical Details
Message-ID: <772e6g$f4p4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <770t3d$e0n5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,beca5ce43c8f5ec6
X-Google-Attributes: gidf74b3,public
From: "Jonathan" <plaskowj@logica.com>
Subject: Re: How can I switch frames?
Date: 1999/01/07
Message-ID: <772e6g$f4p4@forums.borland.com>
X-Deja-AN: 429797443
References: <770t3d$e0n5@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language