title: Java reuse Dimension objects when setting component size
body: <p>Is it contraindicated to use several presetted dimension objects to set the preferred size of non resizable components on the screen.
  E.g.: two textfields both should be 80x20 px so:</p>
  
  <pre><code>Dimension d = new Dimension(80, 20);
  tf1.setPreferredSize(d);
  tf2.setPreferredSize(d);
  </code></pre>