title: Get effective screen size from Java
body: <p>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).</p>
  
  <p>I am currently using...</p>
  
  <pre><code>component.getGraphicsConfiguration().getBounds()
  </code></pre>
  
  <p>...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.</p>