🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7835

Re: Shrinking Frame

#7835
From: Greg Hamer
Date: Thu, 17 May 2001 20:23
43 lines
2402 bytes
Usually for frames you would call pack() right before calling
setVisible(true). This would make the frame a small as possible with all the
components still nicely sized. If you want to specify a size yourself, that
is fine too. The UI designer assumes people are using pack()
unless it finds a setSize(new Dimenion(width,height)) propertySetting in the
JbInit method. If you add the setSize call, the designer will honor and
update it as you re-size the frame in the designer. If there is no size
property setting, the designer just remembers the size of the form for the
next time you bring it up in the designer. If you do add a setSize call,
just make sure that it has one Dimension parameter instead of two integers.

"Sara Swartz" <Sara_Swartz@nospamLorienti.com> wrote in message
news:3b01accd$1_2@dnews...
>
> Can you give me an idea of what part of the code I can change in order to
fix it?
>
> Thanks,
> Sara
>
>
>
> "rp" <admin@objectpascal.com> wrote:
> >This is most likely due to a layout manager and or preferedSize,
> >minimumSize.
> >
> >"Sara Swartz" <sara_swartz@lnospamorienti.com> wrote in message
> >news:3b016549_2@dnews...
> >> I find that when I try to resize the frame in the design window the
> >runtime
> >> frame is reduced to the 3 windows buttoms (minimize, maximize and
close).
> >> What am I doing wrong, and what do I adjust to make the frame the size
> >that
> >> I want?
> >>
> >> Thanks,
> >> Sara
> >>
> >>
> >
> >
>
Technical Details
Message-ID: <3b04336c$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed.mesh.ad.jp!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b016549_2@dnews> <3b01a063$1_2@dnews> <3b01accd$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,42061bcb5efe5e30
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-17 13:45:23 PST
From: "Greg Hamer" <ghamer@troikanetworks.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b016549_2@dnews>  <3b01a063$1_2@dnews>  <3b01accd$1_2@dnews>
Subject: Re: Shrinking Frame
Date: Thu, 17 May 2001 13:23:43 -0700
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 12.31.172.193
Message-ID: <3b04336c$1_1@dnews>
X-Trace: dnews 990131052 12.31.172.193 (17 May 2001 13:24:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed.mesh.ad.jp!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews