Does anyone know if there's a way to detect either:
[ul][li]the size and position of the task bar[/li]
or
[li]the dimensions of the desktop minus the task bar[/li][/ul] in Java on Windows NT/2000/XP?
Using
I can get the screen dimensions, but this doesn't take the task bar dimensions into account, so that if I create a window using these dimensions it covers the task bar (which I find annoying, so I'm sure end users will too). I can't assume the task bar will always be in the same place as my program will be used by several users on different PCs.
I couldn't find any way to "maximise" a window either;
and
seem to be the only frame state constants available in
. Any other ideas?
Thanks.
[ul][li]the size and position of the task bar[/li]
or
[li]the dimensions of the desktop minus the task bar[/li][/ul] in Java on Windows NT/2000/XP?
Using
Code:
java.awt.Toolkit.getDefaultToolkit().getScreenSize()
I couldn't find any way to "maximise" a window either;
Code:
Frame.NORMAL
Code:
Frame.ICONIFIED
Code:
java.awt.Frame
Thanks.