Question: I have a JComboBox component in the panel and ItemListener attached to it. But it gets fired after every up/down keypress (when scrolling though opened popup list). I want to change the selected value after the user accepts selection by pressing for example Enter key.

This is not a case when using mouse. When I move mouse over the combobox's list the highlight follows mouse pointer, but selected item is not changed until I press the mouse button. I would like to have the same behavior for keyboard, i.e. moving highlight via up/down arrow does not change selected item, but pressing Enter does.

Answer: 
In Java 8 they have fixed this behaviour, but only trigger if u set one UI property

```
UIManager.getLookAndFeelDefaults().put("ComboBox.noActionOnKeyNavigation", true);

```
Its the expected behavior with the `ItemListener`. whenever the displayed value changes the event is fired. For your requirement use an `ActionListener`.