editorSelector = new JComboBox();
editorSelector.setEditable(false);
editorSelector.setRenderer(NamedObject.getIconRenderer());
editorSelector.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
final NamedObject key = (NamedObject) editorSelector.getSelectedItem();
editor = editors.get(key);
final CardLayout layout = (CardLayout) editorPanel.getLayout();
layout.show(editorPanel, key.getObject().toString());
editor.getEditorComponent().requestFocusInWindow();
final ActionEvent actionEvent = new ActionEvent(editor, 0, null);
for (final ActionListener l : actionListeners) {
l.actionPerformed(actionEvent);
}