title: Create JComboBox and assign data later
body: <p>Hi I am trying to create a JComboBox using Java Swing.</p>
  
  <p>By the time the JCombobox is created, the contents of this box is not decided. Therefore I cannot use the constructor:</p>
  
  <pre><code>String[] selectionArray = {........};
  JComboBox myComboBox = new JComboBox(selectionArray);
  </code></pre>
  
  <p>I want to assign the data (an array of Strings) later after I created the JComboBox. </p>
  
  <p>I looked around the API and didn't find a corresponding method to do this.</p>
  
  <p>Can someone point me to the right direction?</p>
  
  <p>Many thanks.</p>