🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: I need a function to center a frame

#7950
From: Wolf Grossi
Date: Thu, 03 May 2001 09:50
10 lines
1477 bytes
"luckybob" <luckybob@tca.net> schrieb im Newsbeitrag
news:tf231e3fv1ih19@corp.supernews.com...
> I need a function to center a frame.

frame.setLocation((ScreenSize.width -  frame.getSize().width)  / 2,
                           (ScreenSize.height - frame.getSize().height) /
2);

hth,
wolf
Technical Details
Message-ID: <9cr9na$ekj$1@rohrpostix.uta4you.at>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!feeds.vnews.net!nntp.cifnet.net!news.stealth.net!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newscore.univie.ac.at!newsrouter.chello.at!newsfeed.utanet.at!rohrpostix.uta4you.at!not-for-mail
References: <tf231e3fv1ih19@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f6ef419f487fffd2
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-03 03:12:03 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!feeds.vnews.net!nntp.cifnet.net!news.stealth.net!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newscore.univie.ac.at!newsrouter.chello.at!newsfeed.utanet.at!rohrpostix.uta4you.at!not-for-mail
From: "Wolf Grossi" <X-news@magro-soft.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: I need a function to center a frame
Date: Thu, 3 May 2001 11:50:51 +0200
Organization: UTANET Newsserver
Lines: 12
Message-ID: <9cr9na$ekj$1@rohrpostix.uta4you.at>
References: <tf231e3fv1ih19@corp.supernews.com>
NNTP-Posting-Host: olinz-5142.utaonline.at
X-Trace: rohrpostix.uta4you.at 988883498 14995 212.152.214.42 (3 May 2001 09:51:38 GMT)
X-Complaints-To: news-admin@utanet.at
NNTP-Posting-Date: 3 May 2001 09:51:38 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400