<p>I'm trying to get an event to fire whenever a choice is made from a <code>JComboBox</code>.</p>

<p>The problem I'm having is that there is no obvious <code>addSelectionListener()</code> method.</p>

<p>I've tried to use <code>actionPerformed()</code>, but it never fires.</p>

<p>Short of overriding the model for the <code>JComboBox</code>, I'm out of ideas.</p>

<p>How do I get notified of a selection change on a <code>JComboBox</code>?**</p>

<p><strong>Edit:</strong> I have to apologize. It turns out I was using a misbehaving subclass of <code>JComboBox</code>, but I'll leave the question up since your answer is good.</p>

It should respond to
ActionListeners
, like this:
```
```
combo.addActionListener (new ActionListener () {
    public void actionPerformed(ActionEvent e) {
        doSomething();
    }
});
```
```
@John Calsbeek
rightly points out that
```
addItemListener()
```
will work, too.  You may get 2
```
ItemEvents
```
, though, one for the deselection of the previously selected item, and another for the selection of the new item. Just don't use both event types!