🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3189

Re: Frames in frames

#3189
From: Joe Nuxoll
Date: Fri, 06 Mar 1998 00:00
20 lines
1197 bytes
Stephan Jager wrote:
> I don't know if this is a stupid question, but my problem is, I need to
> open a new frame in a frame, and the parent frame shouldn't be editable
> or visible anymore.  After the childs frame has been closed (with
> dispose() ?) , the control should return to the parents frame.
> With dialogs you simply do dialog.setModal(true), but this doesn't work
> with frames. Does anybody have a solution ?

Try something like this:

otherFrame.addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
    this.setVisible(true);
  }
});
this.setVisible(false);
otherFrame.setVisible(true);

 - Joe Nuxoll
Technical Details
Message-ID: <3500A6B3.EB3D598B@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3500234A.8B0A746E@sci.kun.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,813b005f16461963
X-Google-Attributes: gid1089d0,public
From: Joe Nuxoll <jnuxoll@corp.borland.com>
Subject: Re: Frames in frames
Date: 1998/03/06
Message-ID: <3500A6B3.EB3D598B@corp.borland.com>
X-Deja-AN: 331584104
Content-Transfer-Encoding: 7bit
References: <3500234A.8B0A746E@sci.kun.nl>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api