title: could not set the column width to zero i.e. not made column invisible
body: <p>I am trying to make one column from <code>JTable</code>, invisible by setting width to zero but it could not happen and it remain visible to width = 15. Here is code - </p>
  
  <pre><code>public void restoreColumnWithWidth(int column, int width) {
          try {
              TableColumn tableColumn = table.getColumnModel().getColumn(column);
              table.getTableHeader().setResizingColumn(tableColumn);
              tableColumn.setWidth(width);
              tableColumn.setMaxWidth(width);
              tableColumn.setMinWidth(width);
              tableColumn.setPreferredWidth(width);
          } catch (Exception ex) {
          }
      }
  </code></pre>
  
  <p>What is wrong with the code ?</p>