🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: opening a frame maximized

#10002
From: Kürşat Suiçmez
Date: Thu, 09 Dec 1999 00:00
16 lines
1001 bytes
Hi!
You can try this;

Dimension d=Toolkit.getDefaultToolkit().getScreenSize();
frame.setSize(d.width,d.height);


Erwin Olaerts wrote:

> Does anybody know how I can open a frame maximized instead of pressing
> the maximize button? I want my application to open it's frame maximized
> from the start !
> Somehow I can't get to the code used for the maximize-button.
>
> Many thanks in advance,
> Erwin
Technical Details
Message-ID: <3850905B.3C9AD565@hotmail.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <384D0824.6955C959@idp.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,de31ed238ea8d7eb
X-Google-Attributes: gid111d45,public
From: Kürşat Suiçmez <kursads@hotmail.com>
Subject: Re: opening a frame maximized
Date: 1999/12/09
Message-ID: <3850905B.3C9AD565@hotmail.com>
X-Deja-AN: 558683409
Content-Transfer-Encoding: 7bit
References: <384D0824.6955C959@idp.be>
X-Accept-Language: tr,en
Content-Type: text/plain; charset=iso-8859-9
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing