Article View: borland.public.jbuilder.java.api
Article #2352How to get USABLE screen size (which excludes Windows taskbar)?
From: Patrick J. Maloney
Date: Thu, 08 Mar 2001 21:41
Date: Thu, 08 Mar 2001 21:41
15 lines
1689 bytes
1689 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:
<3aa7fc3d_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!kinglear.mobilixnet.dk!newsfeed101.telia.com!news.tele.dk!194.176.220.129!newsfeed.icl.net!dispose.news.demon.net!demon!grolier!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!206.112.145.126Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2d19cd1ed290df28,start X-Google-Attributes: gid111d45,public X-Google-Thread: 1089d0,2d19cd1ed290df28,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-03-08 13:48:02 PST From: "Patrick J. Maloney" <patrick.maloney@wcb.state.ny.us> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.swing Subject: How to get USABLE screen size (which excludes Windows taskbar)? Date: Thu, 8 Mar 2001 16:41:26 -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: <3aa7fc3d_2@dnews> X-Trace: 8 Mar 2001 13:40:13 -0800, 206.112.145.126 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!kinglear.mobilixnet.dk!newsfeed101.telia.com!news.tele.dk!194.176.220.129!newsfeed.icl.net!dispose.news.demon.net!demon!grolier!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!206.112.145.126