🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2366

Re: How to get USABLE screen size (which excludes Windows taskbar)?

#2366
From: John McGrath TeamB
Date: Mon, 12 Mar 2001 08:00
37 lines
2281 bytes
On Sat, 10 Mar 2001 13:06:54 +0100, Torsten Welches wrote:

> >    java.awt.Toolkit.getScreenInsets();
> 
> where did you find that information, John? I just searched
> java.sun.com and found nothing.  Also the latest Merlin
> Feature List does not contain it.

I found it on the Bug Parade.  Yeah, I am weird -- I actually read the 
Bug Parade.  But there is lots of interesting information about what is 
coming to be gleaned from it.

If you search on "Toolkit.getScreenInsets" you will find 5 reports, 
from which you can tell:

1) The insets returned by the method takes into account the position of 
the task bar and "similar widgets".
   http://developer.java.sun.com/developer/bugParade/bugs/4340917.html
   http://developer.java.sun.com/developer/bugParade/bugs/4032847.html

2) There will be a default implementation of this method in the Toolkit 
abstract base class.  I presume that will return Insets(0,0,0,0).
   http://developer.java.sun.com/developer/bugParade/bugs/4359429.html

3) At least one variant of the method will take a GraphicsConfiguration 
object as a parameter, allowing you to get the insets for different 
screens.
   http://developer.java.sun.com/developer/bugParade/bugs/4346599.html

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.1516395d6c35ff8698a051@forums.borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
References: <3aa91b9c_2@dnews> <98bidd$sv12@bornews.inprise.com> <MPG.1513a7b88df62faa98a049@forums.borland.com> <3aaa19d7_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,2d19cd1ed290df28
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-03-12 00:00:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: How to get USABLE screen size (which excludes Windows taskbar)?
Date: Mon, 12 Mar 2001 03:00:35 -0500
Organization: Another Netscape Collabra Server User
Lines: 37
Message-ID: <MPG.1516395d6c35ff8698a051@forums.borland.com>
References: <3aa91b9c_2@dnews> <98bidd$sv12@bornews.inprise.com> <MPG.1513a7b88df62faa98a049@forums.borland.com> <3aaa19d7_1@dnews>
NNTP-Posting-Host: dslcv1-60.fast.net
X-Newsreader: MicroPlanet Gravity v2.30