Article View: aus.computers.java
Article #1036Re: [Converting gridbag layout to frame layout application]
From: Tavis Elliott
Date: Wed, 13 Oct 1999 00:00
Date: Wed, 13 Oct 1999 00:00
30 lines
1333 bytes
1333 bytes
For JFrames, you need to add Components to its ContentPane, and not to
the JFrame itself.
Try:
f.getContentPane().add( ... );
Tavis
Thomas F wrote:
> Hi ,
>
> I have just developed a gridbag layout for an email application, and
> would like to transport that to a frame application -
>
> I have tried the following with no success
>
> Frame f;
> GridBagLayou gbLayout;
>
> f = new Frame("FrameMail 1.40");
> f.setLayout(gbLayout);
>
> f.add(c);
>
> where c is the individual components added to the gridbag at each
> interval.
>
> Any ideas would be greatly appericated.
Technical Details
Message-ID:
<3804D2BF.61E7D820@evergo.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38048b2a.111366625@news.powerup.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,835444fcc66adb4a X-Google-Attributes: gid10d6db,public X-Google-Thread: 10fd6d,835444fcc66adb4a X-Google-Attributes: gid10fd6d,public From: Tavis Elliott <tavise@evergo.net> Subject: Re: [Converting gridbag layout to frame layout application] Date: 1999/10/13 Message-ID: <3804D2BF.61E7D820@evergo.net> X-Deja-AN: 536303018 Content-Transfer-Encoding: 7bit References: <38048b2a.111366625@news.powerup.com.au> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com MIME-Version: 1.0 Newsgroups: aus.computers.java,comp.lang.java.gui