I would like to get the effective screen size. That is: the size of the screen without the taskbar (or the equivalent on Linux/Mac).
I am currently using…
component.getGraphicsConfiguration().getBounds()
…and subtracting the default taskbar size depending on the OS, but I would like a way that works even if the user has resized/moved the taskbar.
This could determine the screen size in pixels without the taskbar
EDIT
Can someone please run this code on Xx_nix and Mac OSX and check if JDialog is really placed in the bottom right corner?