Auto-Hide Task-Bar and maximum screen space
It is well documented that code like the following

        final Rectangle bounds = device.getDefaultConfiguration().getBounds();
        final Insets screenInsets = Toolkit.getDefaultToolkit().getScreenInsets(
            device.getDefaultConfiguration());

        bounds.x = screenInsets.left;
        bounds.y = screenInsets.top;
        bounds.width -= screenInsets.left + screenInsets.right;
        bounds.height -= screenInsets.top + screenInsets.bottom;

where `device` is some valid `GraphicsDevice` gives a rectangle that should be the maximum allowable for a device.  There are also other ways which all seem to suffer a shortcoming. For a primary display on MS Windows if the **task-bar is NOT auto-hide** this works.  However if the **task-bar is auto-hide** it will not. I could allow for this in my unit test if I knew how to get the 'right' size or how, in the worst case, to determine when the task-bar is auto-hide then skip this part of the the test.  Googling and Stackoverflowing has not helped.  I know someone can and I thank you in advance!

As Always...
Auto-Hide Task-Bar and maximum screen space
===

It is well documented that code like the following

        final Rectangle bounds = device.getDefaultConfiguration().getBounds();
        final Insets screenInsets = Toolkit.getDefaultToolkit().getScreenInsets(
            device.getDefaultConfiguration());

        bounds.x = screenInsets.left;
        bounds.y = screenInsets.top;
        bounds.width -= screenInsets.left + screenInsets.right;
        bounds.height -= screenInsets.top + screenInsets.bottom;

where `device` is some valid `GraphicsDevice` gives a rectangle that should be the maximum allowable for a device.  There are also other ways which all seem to suffer a shortcoming. For a primary display on MS Windows if the **task-bar is NOT auto-hide** this works.  However if the **task-bar is auto-hide** it will not. I could allow for this in my unit test if I knew how to get the 'right' size or how, in the worst case, to determine when the task-bar is auto-hide then skip this part of the the test.  Googling and Stackoverflowing has not helped.  I know someone can and I thank you in advance!

As Always...