title: Use jComboBox to show certain columns
body: <p>This is my code, and it is not working how I want it to.</p>
  <pre><code>if (jComboBox1.getSelectedIndex() == 0) {
      estateTable.getColumnModel().getColumn(2).setWidth(0);
      estateTable.getColumnModel().getColumn(2).setMinWidth(0);
      estateTable.getColumnModel().getColumn(2).setMaxWidth(0);
  }        
  if (jComboBox1.getSelectedIndex() == 1) {
      estateTable.getColumnModel().getColumn(3).setWidth(0);
      estateTable.getColumnModel().getColumn(3).setMinWidth(0);
      estateTable.getColumnModel().getColumn(3).setMaxWidth(0);
  </code></pre>
  <p>What I want is to display only certain columns on the jTabel but it does not work properly with this code</p>