M
M
Mikhail Slipin2015-07-11 11:07:01
Java
Mikhail Slipin, 2015-07-11 11:07:01

How to determine the location of the taskbar (bottom, left, etc.) and its size in Windows?

Bottom line: I want the application window to be displayed approximately at the same place as the start menu in Windows (xp, vista, 7). My logic is this: knowing the screen resolution and taskbar settings, with the help of simple calculations, you can place the window in the appropriate area.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
programmerjava, 2015-07-12
@RokkiJoker

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Insets scnMax = Toolkit.getDefaultToolkit().getScreenInsets(getGraphicsConfiguration());

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question