🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Maximizing a JPanel on startup

#10863
From: Lois Neo
Date: Thu, 29 Jul 1999 00:00
22 lines
1132 bytes
The method I use currently is to get the screen size and set the frame size
to that of the screen size. It's not really 'maximized' but at least it
fills up the screen.

e.g. code:
myFrame.setSize(Toolkit.getDefaultToolkit().getScreenSize());
myFrame.setLocation(0,0);

--
hope it helps

Lois

Erik Vande Velde <evvl@capitalmarketscompany.com> wrote in message
news:7nms5a$7m91@forums.borland.com...
> How do I maximize my main application frame at startup. Can it
> be done with a single method call ?
>
> Thx,
>    Erik
>
>
Technical Details
Message-ID: <7np98b$9el12@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7nms5a$7m91@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,fbc09e2bebf6d66d
X-Google-Attributes: gid111d45,public
From: "Lois Neo" <slneo@cybergal.com>
Subject: Re: Maximizing a JPanel on startup
Date: 1999/07/29
Message-ID: <7np98b$9el12@forums.borland.com>
X-Deja-AN: 506537040
References: <7nms5a$7m91@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Lois Neo" <slneo@cybergal.com>
Newsgroups: borland.public.jbuilder.java.swing