title: Get SelectedItem from Combobox
body: <p>Like this i can output the selected value from the ComboBox..</p>
  
  <pre><code>public static String selectedString(ItemSelectable is) {
      Object selected[] = is.getSelectedObjects();
      return ((selected.length == 0) ? "null" : (String)selected[0]);
  }
  
  public static void main(String[] args) {
          // Add ActionListener
          ActionListener actionListener = new ActionListener() {
              public void actionPerformed(ActionEvent actionEvent) {
                  ItemSelectable is = (ItemSelectable)actionEvent.getSource();
                  String name=selectedString(is);
                  System.out.println(name);
              }
          };
  
          // Add Actionlistener to ComboBox kundeAuswahl
          kundeAuswahl.addActionListener(actionListener);
  
         // i wanna have the value of name for use here:
         // String test[] = getChildAsArray("kunde","projekt",name);
  }
  </code></pre>
  
  <p>But i would like to get the Value <strong>name</strong> out of this function, normally i use return, but this gives me an error. How do i have to do this, then?</p>