Article View: borland.public.jbuilder.java.api
Article #2356How to get USABLE screen size (which excludes Windows taskbar)?
From: Patrick J. Maloney
Date: Fri, 09 Mar 2001 18:07
Date: Fri, 09 Mar 2001 18:07
15 lines
1454 bytes
1454 bytes
Hi. I want to size and place a JWindow such that it covers the right half
of the screen. I can do this without any problem EXCEPT that
Toolkit.getDefaultToolkit().getScreenSize() does not take the WinXX taskbar
into account. Toolkit...getDesktopProperty("win.propNames") does not list
anything useful related to this.
The Windows API has a call to get this information (GetSystemMetrics()?),
but I want to avoid any platform-specific calls.
Can anyone provide a solution? TIA
--
Patrick J. Maloney
New York State
Workers' Compensation Board
Technical Details
Message-ID:
<3aa91b9c_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!206.112.145.126Show 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-09 10:14:09 PST From: "Patrick J. Maloney" <patrick.maloney@wcb.state.ny.us> Newsgroups: borland.public.jbuilder.java.api Subject: How to get USABLE screen size (which excludes Windows taskbar)? Date: Fri, 9 Mar 2001 13:07:33 -0500 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 206.112.145.126 Message-ID: <3aa91b9c_2@dnews> X-Trace: 9 Mar 2001 10:06:20 -0800, 206.112.145.126 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!206.112.145.126