🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems with frame size after L&F change

#1075
From: George
Date: Tue, 11 May 2004 13:40
46 lines
2470 bytes
I changed to Frame.SetExtendedState(int) but it doesn't make much
difference.  The sizing problem is still there.

BTW, the L&Fs on offer in my program are just the usual Metal, Motif &
Windows combination just as in JBuilder itself.

"Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message
news:409bffc1$1@newsgroups.borland.com...
> George wrote:
>
> > My application has a frame window whose initial size is set to the
screen
> > size at application startup with the following  statement:
> >
> > frame.setSize(frame.getToolkit().getScreenSize).
> >
>
> And there-in lies your problem.  Never do this.
>
> I worked with cross-platform GUI's in C for years.  This issue of
> switching L&F on the fly is a thorny one.  EVERY L&F has differently
> sized frame decorations, so when you start sizing the frame and messing
> with L&F at the same time, you will never get what you want.
>
> If you want your application to fill the screen, then set it
> "maximized".  See Frame.setExtendedState(int) for details.
>
> -- 
>
> Regards,
>
> Lori Olson (TeamB)
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
>      http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
>      http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
>      http://www.visi.com/~gyles19/fom-serve/cache/1.html
>
Technical Details
Message-ID: <40a0d836$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4096a942$1@newsgroups.borland.com> <409bffc1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3d3545011bb4e52b
X-Google-Attributes: gid111d45,public
From: "George" <geo_54321@yahoo.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <4096a942$1@newsgroups.borland.com> <409bffc1$1@newsgroups.borland.com>
Subject: Re: Problems with frame size after L&F change
Date: Tue, 11 May 2004 09:40:00 -0400
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 63.119.115.129
Message-ID: <40a0d836$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084282934 63.119.115.129 (11 May 2004 06:42:14 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail