Actually, forget that.

Use setSize, which is actually in the AWT foundations of Swing. The concept
of a preferred size is only relevant to components that can be resized by
layout managers.

-----Original Message-----
From: Greg Munt <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 16, 2001 04:24
Subject: Re: resized JFrame


>No. Not what I meant. In AWT you have to extend classes and override
>accessor methods. In Swing, you have mutator methods - such as
>setPreferredSize :-)
>
>-----Original Message-----
>From: Paul Brinkley <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Friday, March 16, 2001 04:17
>Subject: Re: resized JFrame
>
>
>>At 03:55 PM 3/16/2001 +0000, Greg Munt wrote:
>>>This is Swing, not AWT!
>>
>>[meekly] Well, the guy -did- say "JFrame"...
>>
>>Whatever.  I'm on this list and the non-advanced one, and
>>didn't realize which one I was on until I'd sent the message,
>>so you can get me on that one.  If I had, I'd be chewing the
>>guy out, too.
>>
>>
>>_______________________________________________
>>Advanced-swing mailing list
>>[EMAIL PROTECTED]
>>http://eos.dk/mailman/listinfo/advanced-swing
>
>_______________________________________________
>Advanced-swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/advanced-swing

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to