🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: window resizing

#8990
From: Brian Duff
Date: Sat, 27 May 2000 00:00
27 lines
1508 bytes
Hi Jacob,

The layout manager you are using in the window determines whether or not the
components resize when the window is resized. If you are positioning
components manually (e.g. using no layout manager, or the XYLayoutManager
from JBuilder), the components will not naturally resize themselves because
their positions are fixed.

The solution is to use one of the other layout managers, such as
BorderLayout or, for complex layouts, GridBagLayout. Often fairly complex UI
can be built up with BorderLayout and nested panels. Have a look at the Java
Tutorial on java.sun.com for examples of using these layout managers.

Brian

--
--
To send me email, remove the uppercase portion of my email address.
Jacob Grun <grun@nrl.navy.mil> wrote in message news:392a9274@dnews...
> When I resize the main window of my GUI the items within it do not resize
to
> maintain their relative positions within the window.  Can someone tell me
> how to fix that?
> Thanks,
> Jacob
>
>
Technical Details
Message-ID: <8gpeuk$ap4$1@plutonium.btinternet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <392a9274@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1cf2ce7d0619afc1
X-Google-Attributes: gid111d45,public
From: "Brian Duff" <bduff@uk.oracle.com.DELETE_THIS_BIT>
Subject: Re: window resizing
Date: 2000/05/27
Message-ID: <8gpeuk$ap4$1@plutonium.btinternet.com>
X-Deja-AN: 628069694
References: <392a9274@dnews>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: BT Internet
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing