🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Toolkit getScreenSize() and Windows Start Bar

#16577
From: Guy Scharf
Date: Wed, 27 Jan 1999 00:00
28 lines
1593 bytes
Richard,

Subtracting pixels is about what I am doing now.  24 seems to be a
better number.  I'd really like to avoid native code like jConfig uses.

Guy

Richard Wilkman wrote:
> 
> Guy:
> 
> Not that I've seen.  Probably need to use native code.  Of course, if
> you do this you also have to take into account that the start bar
> doesn't have to be on the screen and can be in any of four locations
> (top, bottom, right, left) at a given time.
> 
> How about playing it safe and only using Java.  Get the size and then
> subtract 20 pixels, or so,  from all directions.
> 
> -Rich
> 
> Guy Scharf wrote:
> >
> > When I use Toolkit.getDefaultToolkit().getScreenSize(), it returns the
> > total size of the screen, including the space used by the Windows NT
> > (and presumably 95/98?) start bar.  I'd like to get the dimensions
> > excluding the start bar, so that I can position and size a window that
> > doesn't overlap the start bar.  Is there any way to do this from Java?
Technical Details
Message-ID: <36AFDE4B.F48FE94E@swarc.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36ADE344.1B9A5827@swarc.com> <36ADEA88.E1ED5A71@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,480b2a6b9cc6d356
X-Google-Attributes: gidf74b3,public
From: Guy Scharf <guy@swarc.com>
Subject: Re: Toolkit getScreenSize() and Windows Start Bar
Date: 1999/01/27
Message-ID: <36AFDE4B.F48FE94E@swarc.com>
X-Deja-AN: 437798587
Content-Transfer-Encoding: 7bit
References: <36ADE344.1B9A5827@swarc.com> <36ADEA88.E1ED5A71@inprise.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Software Architects, Inc.
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language