title: How to resize JTable column to string length?
body: <p>I have a JTable that will have the last column data field change to different string values. I want to resize the column to the string length. What is the formula for string length to width? </p>
  
  <p>I'm going to be using <code>JTable.getColumnModel().getColumn().setPreferredWidth()</code> so I want to know how to translate string length to width value.</p>