title: non resizable window border and positioning
body: <p>If i create non-resizable JFrames, and windows Aero is enabled <code>setLocation</code> does not seem to take account of the window border correctly.</p>
  
  <p>In the following code I would expect the second frame to be positioned to the right of the first frame, instead the borders are overlapping. If Aero is disabled or if I remove the calls to <code>setResizable</code> this is done as expected.</p>
  
  <pre><code>import java.awt.Rectangle;
  import javax.swing.JFrame;
  public class FrameBorders {
  public static void main(String[] args) {
      JFrame frame1 = new JFrame("frame 1");
      JFrame frame2 = new JFrame("frame 2");
  
      frame1.setResizable(false);
      frame2.setResizable(false);
  
      frame1.setVisible(true);        
      Rectangle bounds = frame1.getBounds();      
      frame2.setLocation(bounds.x+bounds.width, bounds.y);
      frame2.setVisible(true);
  
  }
  }
  </code></pre>
  
  <p>Am I doing something wrong or is this a bug? 
  How can I display 2 unresizable dialogs side by side without having overlapping borders?</p>
  
  <p>Edit: added screenshots (also changed frame2 to a JDialog instead of a JFrame)</p>
  
  <p>Aero On:
  <img src="https://i.stack.imgur.com/1h6fz.jpg" alt="Aero On"></p>
  
  <p>Aero Off:
  <img src="https://i.stack.imgur.com/BoI7N.jpg" alt="Aero Off"></p>
  
  <p>Aero On but resizable:
  <img src="https://i.stack.imgur.com/fUgeJ.jpg" alt="Aero On but resizable"></p>