Article View: aus.computers.java
Article #1037Re: [Converting gridbag layout to frame layout application]
From: Thomas F
Date: Wed, 13 Oct 1999 00:00
Date: Wed, 13 Oct 1999 00:00
43 lines
1679 bytes
1679 bytes
Thanks ... I will give that a try, but from memory, JFrame is part of
Swing?
I am not allowed to use Swing .... as part of the assignment
requirements.
Thankx
On Wed, 13 Oct 1999 11:43:11 -0700, Tavis Elliott <tavise@evergo.net>
wrote:
>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:
<3804f36c.138060696@news.powerup.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38048b2a.111366625@news.powerup.com.au> <3804D2BF.61E7D820@evergo.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10fd6d,835444fcc66adb4a X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10d6db,835444fcc66adb4a X-Google-Attributes: gid10d6db,public From: tfung@powerup.com.au (Thomas F) Subject: Re: [Converting gridbag layout to frame layout application] Date: 1999/10/13 Message-ID: <3804f36c.138060696@news.powerup.com.au> X-Deja-AN: 536400109 Distribution: world References: <38048b2a.111366625@news.powerup.com.au> <3804D2BF.61E7D820@evergo.net> X-Original-NNTP-Posting-Host: ae06214.powerup.com.au X-Trace: ozemail.com.au 939848704 203.32.8.130 (Thu, 14 Oct 1999 07:05:04 EST) Organization: OzEmail Ltd, Australia NNTP-Posting-Date: Thu, 14 Oct 1999 07:05:04 EST Newsgroups: aus.computers.java,comp.lang.java.gui