Article View: borland.public.jbuilder.java.language
Article #17588Re: Frame center and positioning
From: Tapio Holopainen
Date: Fri, 23 Oct 1998 00:00
Date: Fri, 23 Oct 1998 00:00
16 lines
907 bytes
907 bytes
Jonathan wrote: > > Can someone tell me how to centre, and also position a frame on the screen Here's the code: Frame f = new Frame(); f.setSize(500,300); Dimension dim = (Toolkit.getDefaultToolkit()).getScreenSize(); f.setLocation(new Point(dim.width/2-250,dim.height/2-150)); f.show(); - Tapio
Technical Details
Message-ID:
<36309A8E.8D30C932@sysline.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bdfb47$10568f80$881aea9e@ukp10008>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a12dab650f8734f7 X-Google-Attributes: gidf74b3,public From: Tapio Holopainen <tapio.holopainen@sysline.com> Subject: Re: Frame center and positioning Date: 1998/10/23 Message-ID: <36309A8E.8D30C932@sysline.com> X-Deja-AN: 404291004 Content-Transfer-Encoding: 7bit References: <01bdfb47$10568f80$881aea9e@ukp10008> To: Jonathan <plaskowj@logica.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Sysline Oy Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language