title: ComboBox fill from index 0
body: <p>I have a <code>ComboBox</code> that get its items from my database when the program starts.
  Here is the code </p>
  
  <pre><code>private void fillComboBox(){
      try{
          String query = "SELECT * FROM `Books`";
          ps = conn.prepareStatement(query);
          rs = ps.executeQuery();
  
          while(rs.next()){
              String name = rs.getString("BookName");
              searchComboBox.addItem(name);
          }
      }catch(Exception ex){
          JOptionPane.showMessageDialog(null, ex);
      }finally{
          try{
              rs.close();
              ps.close();
          }catch(Exception ex){
  
          }
      }
  }
  </code></pre>
  
  <p>But whenever i call this method twice it add items on each other not start adding items from 0
  In other words when i call <code>fillComboBox()</code> method first time it adds <strong>item1, item2 item 3</strong> and when i call it again it adds on the first items not create new item list</p>