Article View: aus.computers.java
Article #1039Re: [Converting gridbag layout to frame layout application]
From: DAVID ROBERTSON
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
14 lines
1045 bytes
1045 bytes
On Wed, 13 Oct 1999, Thomas F wrote:
> Frame f;
> GridBagLayou gbLayout;
>
> f = new Frame("FrameMail 1.40");
> f.setLayout(gbLayout);
>
> f.add(c);
>
I dunno whether you just didn't type it or not, but above you've
forgotten to construct the GridBagLayout after you declared it. If
so, you'll end up with a nullPointerException.
Technical Details
Message-ID:
<Pine.OSF.4.10.9910141253320.11243-100000@sparrow.qut.edu.au>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: 10fd6d,835444fcc66adb4a X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10d6db,835444fcc66adb4a X-Google-Attributes: gid10d6db,public From: DAVID ROBERTSON <n2570963@sparrow.qut.edu.au> Subject: Re: [Converting gridbag layout to frame layout application] Date: 1999/10/14 Message-ID: <Pine.OSF.4.10.9910141253320.11243-100000@sparrow.qut.edu.au> X-Deja-AN: 536500330 Distribution: world References: <38048b2a.111366625@news.powerup.com.au> Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Queensland University of Technology, Australia Mime-Version: 1.0 Newsgroups: aus.computers.java,comp.lang.java.gui