Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5351

Finding the windows taskbar

Newsgroups comp.lang.java.gui
Date 2013-05-29 10:04 -0700
Message-ID <da9c0cca-34e2-4823-8043-9e92b09f8c2c@googlegroups.com> (permalink)
Subject Finding the windows taskbar
From FredK <fred.l.kleinschmidt@gmail.com>

Show all headers | View raw


I want to find the bounds of the taskbar (on Windows) so that I can constrain the position and size of a dialog such that it does not overlap the taskbar.

For a single screen, I can use Toolkit.getDefaultToolkit().getScreenSize()
and toolkit.getScreenInsets().

But I have multiple screens, with the taskbar only on one of them.
I want to use the full screen size on the screens without the taskbar,
and the size minus insets on the one that does have it.

I don't know how to find which screen is displaying the taskbar, or,
alternatively, what the actual bounds of the taskbar are.

-- 
Fred K

Back to comp.lang.java.gui | Previous | Next | Find similar


Thread

Finding the windows taskbar FredK <fred.l.kleinschmidt@gmail.com> - 2013-05-29 10:04 -0700

csiph-web