help needed @ Taskbar dimensions (screen size- taskbar size)  
Author Message
vikas talwar





PostPosted: 2006-6-30 15:56:00 Top

java-programmer, help needed @ Taskbar dimensions (screen size- taskbar size) Hi All,

I'm bulding a stand-alone-java GUI application.
This application is expected to run both on Windows & Linux
The content of GUI window is self configration at run time with csv
file.

Now my problem is " how to set size of GUI application window"

java.awt.Toolkit.getDefaultToolkit() can get me user's full screen-size
but u never know about user's taskbar dimensions. it can be
vertical/horizontal/auto-hide.

How could I get the actual working area for my applciation
i.e. DIMENSIONS_OF_SCREEN_SIZE - DIMENSIONS_OF_TASKBAR

 
Andrey Kuznetsov





PostPosted: 2006-6-30 16:16:00 Top

java-programmer >> help needed @ Taskbar dimensions (screen size- taskbar size) > I'm bulding a stand-alone-java GUI application.
> This application is expected to run both on Windows & Linux
> The content of GUI window is self configration at run time with csv
> file.
>
> Now my problem is " how to set size of GUI application window"
>
> java.awt.Toolkit.getDefaultToolkit() can get me user's full screen-size
> but u never know about user's taskbar dimensions. it can be
> vertical/horizontal/auto-hide.
>
> How could I get the actual working area for my applciation
> i.e. DIMENSIONS_OF_SCREEN_SIZE - DIMENSIONS_OF_TASKBAR

Toolkit#getScreenInsets() could help

Andrey

--
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities