title: JComboBox not showing results
body: <p>i am trying to set the values in a JCombobox based on a for and if loop, on an arraylist.</p>
  
  <pre><code>     //salesman=the name of the combobox
      salesman = new javax.swing.JComboBox();
  
  DefaultComboBoxModel model = new DefaultComboBoxModel();
   salesman.setModel(model);
  
  /*company is an object of Company class, that gets set with a setter method to ensure 
  that the gui will be pointing to the right object. and it does contains the data i want, so 
  i am sure that company is not the problem */       
  //loop tp set box list 
  for (Employee current : company.getArray()){
  
   if (current instanceof Salesman) {
     salesman.addItem(current.getCode());
    }
  
  }
  </code></pre>
  
  <p>but the combobox stays empty. why is that ?</p>