title: ComboBox - printing out the selected item
body: <p>I am a little stuck. I can't figure out a much bigger problem than this, so I am going to the roots to eventually build my way up!</p>
  
  <p>I can't print the selected item in the combo box, currently I have an <code>ActionListener</code> for it:</p>
  
  <pre><code>box.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent evt) {
          myBox(evt);
      }
  });
  
  ...
  
  protected void myBox(ActionEvent evt)
  {
      if(myBoxName.getSelectedItem().toString() != null)
      System.out.println(myBoxName.getSelectedItem().toString());
  }
  </code></pre>
  
  <p>I would expect this to print out to the console every time I change the selected item, but it doesn't. This should be so easy though!</p>
  
  <p>Thanks</p>