[4597] in java-interest

home help back first fref pref prev next nref lref last post

Re: AWT questions

daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Mon Jan 8 18:45:34 1996

Date: Mon, 8 Jan 1996 15:58:35 -0600 (CST)
From: Pat Niemeyer <pat@icon-stl.net>
To: Wacek Gassowski <wacek.gassowski@iar.SE>
cc: java-interest@java.sun.com
In-Reply-To: <199601081708.SAA25391@pjakkur.iar.se>



On Mon, 8 Jan 1996, Wacek Gassowski wrote:

> I am trying different AWT features under NT.
>  
> 1. How can I set a window maximum size ? In general: how can I  controll
>     window resizing through dragging the border?
> 2. I tried to layout panels and canvas using Borderlayout. In order to get
>      required shape and position I call reshape() function before calling 
>     show (). But I cannot get "West" panel x dimension bigger  than 100
>      (show() resets it). The same is with y dimension for "North" panel.
>      But reshape() works OK with for example Button.

I'm not sure I undertand what your trying to do, but...

The BorderLayout will resize objects to fit certain constraints.  North and
South get their preferred height and fill the horizontal, East and West
get their preferred width and fill the remaining height.  The Center gets
the remaining area.  If you don't want your components stretched you might
put them in a Panel first.


Pat

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post