title: Resizing the height of JTable
body: <p>I'm trying to obtain square ( cells with the same width and height )
  However I can only resize the width with the method setPreferredWidth like this:</p>
  
  <pre><code>TableColumnModel tcm = table1.getColumnModel();
  tcm.getColumn(0).setPreferredWidth(100);
  </code></pre>
  
  <p>I tried to  use the method <code>setPreferredSize(100,100);</code> but it doesn't work and I tried the method <code>setRowHeight(100);</code> but it still does not work... I'm using an internal frame, I don't know if it is the reason setRowHeight doesn't work.
  How can I do?</p>