Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding the windows taskbar

7 views
Skip to first unread message

FredK

unread,
May 29, 2013, 1:04:18 PM5/29/13
to
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
0 new messages