private void resetCombo(){
  Object oldChoice=null;
  if (requestors != null) {
    oldChoice=requestors.getSelectedItem();
    ActionListener[] actions=requestors.getActionListeners();
    for (int loop=0; loop < actions.length; loop++) {
      requestors.removeActionListener(actions[loop]);
    }
    requestors.removeAllItems();
    for (    DrawingToolRequestor requestor : drawingToolRequestors) {
      requestors.addItem(requestor.getName());
    }
    if (oldChoice != null) {
      requestors.setSelectedItem(oldChoice);
    }
    for (int loop=0; loop < actions.length; loop++) {
      requestors.addActionListener(actions[loop]);
    }
    setCurrentRequestor((String)requestors.getSelectedItem());
  }
  createButton.setEnabled(drawingToolRequestors != null && !drawingToolRequestors.isEmpty());
}

private void resetCombo ( ) { Object oldChoice = null ; if ( requestors != null ) { oldChoice = requestors . getSelectedItem ( ) ; ActionListener [ ] actions = requestors . getActionListeners ( ) ; for ( int loop = 0 ; loop < actions . length ; loop ++ ) { requestors . removeActionListener ( actions [ loop ] ) ; } requestors . removeAllItems ( ) ; for ( DrawingToolRequestor requestor : drawingToolRequestors ) { requestors . addItem ( requestor . getName ( ) ) ; } if ( oldChoice != null ) { requestors . setSelectedItem ( oldChoice ) ; } for ( int loop = 0 ; loop < actions . length ; loop ++ ) { requestors . addActionListener ( actions [ loop ] ) ; } setCurrentRequestor ( ( String ) requestors . getSelectedItem ( ) ) ; } createButton . setEnabled ( drawingToolRequestors != null && ! drawingToolRequestors . isEmpty ( ) ) ; }
fills combobox with recent values .
