title: How can I set the insets of a JFrame?
body: <p>Is there a way to set the insets of a <code>JFrame</code>?
  I tried</p>
  
  <pre><code>frame.getContentPane().getInsets().set(10, 10, 10, 10);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>frame.getInsets().set(10, 10, 10, 10);
  </code></pre>
  
  <p>but none of them seem to work.</p>