title: Problem - Container changing size automatically in Java
body: <p>I've found that my container is actually changing it's size a short while after being constructed</p>
  
  <p>When it's constructed, I set my components to be at the place I want (like 30px away from the right edge) but later after a short while, I find that it turns from 1008x730 to 1018x740...</p>
  
  <p>(My JFrame is 1024x768)</p>
  
  <p>Does anyone know why this happens and how I can stop this auto-resizing thing?</p>
  
  <p>Thank you.</p>
  
  <p>I just did a -</p>
  
  <pre><code>while (true) {
          System.out.println(c.getSize());
  }
  </code></pre>
  
  <p>And the size changed after a few iterations.</p>
  
  <p>~Edited</p>