title: Overwriting the values in jTable
body: <p>Why does the value in my jTable overwrites the first value which are
  selected from the jcombobox? can somebody help me out with this code:</p>
  
  <pre><code>private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {                                          
      // TODO add your handling code here:
      Connection con;
      Statement stmt;
      try {
          // TODO add your handling code here
          Class.forName("sun.jdbc.odbc.JdbcOdbc");
      } catch (ClassNotFoundException ex) {
          JOptionPane.showMessageDialog(null, ex);
      }
      try {
          con= DriverManager.getConnection("Jdbc:Odbc:food");
          stmt= con.createStatement();
          int row = 0;
  
          String st= JcbSub.getSelectedItem().toString();
          jTable3.setValueAt(st, row, 0);    
  
              row ++;
  
          } catch (SQLException ex) {
          JOptionPane.showMessageDialog(null, ex);
      } 
  }
  </code></pre>