Article View: borland.public.jbuilder.java.swing
Article #8264Re: JFileChooser size problem
From: Joi Ellis
Date: Mon, 09 Oct 2000 00:00
Date: Mon, 09 Oct 2000 00:00
34 lines
2039 bytes
2039 bytes
"John McGrath [TeamB]" wrote:
>
> On Sat, 07 Oct 2000 01:19:55 -0500, Joi Ellis wrote:
>
> > bogus.getContentPane().add(fc);
> > bogus.pack();
> > computedSize = bogus.getPreferredSize();
>
> This looks like it will just return the size that a JFrame would be if it
> held a 500x300 JFileChooser. This is a little larger than the 500x300
> that the JFileChooser asks for. I think it may be just a coincidence
> that it works in this case. The size that you need is just a little bit
> larger than the 500x300 size hard-coded into JFileChooser.
>
> You might try adding a field or two to your Accessory and see if it still
> works for you.
You're right, it's just a coincidence it worked for that size accessory.
If I make the accessory taller, it still fails. I'll just have to rewrite
my opentool to not use an accessory for the input fields.
What a stupid design.
Note to self: JFileChooser accessory isn't worth using.
--
Joi Ellis Software Engineer
Aravox Technologies joi@aravox.com, gyles19@visi.com
No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried. Anything
that kicks a monopoly in the pants has got to be good for something.
- Chris Johnson
Technical Details
Message-ID:
<39E219DF.68D2748@aravox.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39D7D59D.176E4FA5@aravox.com> <MPG.1445eb857969656e989bd0@forums.borland.com> <39DE8A64.819A20AF@aravox.com> <39DEC08B.C01F5739@aravox.com> <MPG.144981cd20799d08989beb@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2f241fe4201eef13 X-Google-Attributes: gid111d45,public From: Joi Ellis <joi@aravox.com> Subject: Re: JFileChooser size problem Date: 2000/10/09 Message-ID: <39E219DF.68D2748@aravox.com> X-Deja-AN: 679433640 Content-Transfer-Encoding: 7bit References: <39D7D59D.176E4FA5@aravox.com> <MPG.1445eb857969656e989bd0@forums.borland.com> <39DE8A64.819A20AF@aravox.com> <39DEC08B.C01F5739@aravox.com> <MPG.144981cd20799d08989beb@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Aravox Technologies Mime-Version: 1.0 Reply-To: joi@aravox.com Newsgroups: borland.public.jbuilder.java.swing