🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multi-screen apps - changing from screen to screen

#1205
From: John McGrath [TeamB]
Date: Thu, 12 Feb 2004 00:00
20 lines
1738 bytes
On 2/7/2004 at 6:53:06 PM, Bradley Kieser wrote:

> how would you recommend implementing a "lazy load of panels" as you
> put it? I take it that you mean some sort of async load, but can you
> clarify or expand on this?

By creating the panel just when it is needed.  In your solution (a), 
you would need to add code to the method that switches which panel is
visible.  Instead of assuming that a particular panel already exists
and has been added to the parent (CardLayout) panel, you would first
test whether you have created it yet and if not, create it.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <402ac235$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <401ef4d5@newsgroups.borland.com> <4022b192$1@newsgroups.borland.com> <40257c96@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,cd46b352a2e83d5c
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-02-11 16:10:03 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Multi-screen apps - changing from screen to screen
Newsgroups: borland.public.jbuilder.java.swing
References: <401ef4d5@newsgroups.borland.com> <4022b192$1@newsgroups.borland.com> <40257c96@newsgroups.borland.com>
User-Agent: XanaNews/1.15.8.5
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.15.67
Message-ID: <402ac235$1@newsgroups.borland.com>
Date: 11 Feb 2004 16:00:53 -0800
X-Trace: newsgroups.borland.com 1076544053 151.197.15.67 (11 Feb 2004 16:00:53 -0800)
Lines: 20
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail