🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFileChooser size problem

#8254
From: John McGrath TeamB
Date: Sat, 07 Oct 2000 00:00
23 lines
1374 bytes
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.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.144981cd20799d08989beb@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39D7D59D.176E4FA5@aravox.com> <MPG.1445eb857969656e989bd0@forums.borland.com> <39DE8A64.819A20AF@aravox.com> <39DEC08B.C01F5739@aravox.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: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: JFileChooser size problem
Date: 2000/10/07
Message-ID: <MPG.144981cd20799d08989beb@forums.borland.com>
X-Deja-AN: 678827101
References: <39D7D59D.176E4FA5@aravox.com> <MPG.1445eb857969656e989bd0@forums.borland.com> <39DE8A64.819A20AF@aravox.com> <39DEC08B.C01F5739@aravox.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing