title: JComboBox - Array list setting selected item
body: <p>Hi guys Im having a little trouble with setting the selected item of my combobox</p>
  
  <p>I am currently reading a file which contains an object of a person</p>
  
  <p>I have a combo box which is made by using an array list with 3 names inside of it</p>
  
  <p>I am wanting to read the file get the current name in the file of the person and set that name to my combo box field</p>
  
  <p>heres what I have so far:</p>
  
  <pre><code>for(Person p : personList){
      if(p.getName() == personList.toString()){
       personComboBox.setSelectedItem(p.getName());
      }
  }
  </code></pre>
  
  <p>I have already managed to read through the file, I'm just wanting to update my selected item in my combo box</p>