🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Toolkit getScreenSize() and Windows Start Bar

#16741
From: Richard Wilkman
Date: Tue, 26 Jan 1999 00:00
38 lines
1834 bytes
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?
> 
> Thanks.
> 
> Guy

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <36ADEA88.E1ED5A71@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36ADE344.1B9A5827@swarc.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: Richard Wilkman <rwilkman@inprise.com>
Subject: Re: Toolkit getScreenSize() and Windows Start Bar
Date: 1999/01/26
Message-ID: <36ADEA88.E1ED5A71@inprise.com>
X-Deja-AN: 437153019
Content-Transfer-Encoding: 7bit
References: <36ADE344.1B9A5827@swarc.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language