title: Java Toolkit Getting Second screen size
body: <p>I have two screens plugged into my computer and was wondering if there was a way in JFrame or Toolkit of detecting which screen the window is on?</p>
  
  <p>I have this code:</p>
  
  <pre><code>java.awt.Toolkit.getDefaultToolkit().getScreenSize();
  </code></pre>
  
  <p>Which gets my screen size of my main screen, but how can I get the size of my second screen, or detect which screen the window is on?</p>