🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1085

Re: multiple Frames

#1085
From: pnichols
Date: Tue, 23 Mar 2004 22:46
25 lines
1704 bytes
matt Bolan wrote:

> Good Morning.  I have multiple frames that operate independent of each
> other.  I would like to make any frame that is triggered to be viewable in
> the master frame and I also would like to make the new frame the active
> one without giving the user the ability to go back to the parent frame
> (model).
> 
> 
> 
> I also would like to ask which one would be better to do.  To have
> multiple frames for multiple tasks or 1 frame and multiple JPANEL for each
> task.
> 
> What would be the advantage of each?
> 
> 
> 
> thank you

Sounds like you would be better off using JDesktopPane and JInternalFrames
(aka MDI), rather than independent JFrames. 

You could certainly create the Panels individually, and use one JFrame to
load them as needed.
Technical Details
Message-ID: <4060ba13@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40606bb4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b63bc64fbfd4ae10
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-23 14:40:17 PST
Message-ID: <4060ba13@newsgroups.borland.com>
From: pnichols <paul@comp.net>
Subject: Re: multiple Frames
Newsgroups: borland.public.jbuilder.java.swing
Reply-To: paul@comp.net
Mail-Copies-To: paul@comp.net
Date: Tue, 23 Mar 2004 17:46:31 -0500
References: <40606bb4$1@newsgroups.borland.com>
Lines: 26
Organization: clc
User-Agent: KNode/0.7.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 68.71.188.25
X-Trace: newsgroups.borland.com 1080080915 68.71.188.25 (23 Mar 2004 14:28:35 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail