public Controller(Action toggleAction) { itemList.setModel(new DefaultComboBoxModel()); itemList.setPrototypeDisplayValue("------------------------"); enableEditor(false); this.toggleAction = toggleAction; }