javax.swing.plaf.basic

Class BasicComboBoxUI.FocusHandler

public class BasicComboBoxUI.FocusHandler extends Object implements FocusListener

Handles focus changes occuring in the combo box. This class is responsible for repainting combo box whenever focus is gained or lost and also for hiding popup list of items whenever combo box loses its focus.
Constructor Summary
FocusHandler()
Creates a new FocusHandler object.
Method Summary
voidfocusGained(FocusEvent e)
Invoked when combo box gains focus.
voidfocusLost(FocusEvent e)
Invoked when the combo box loses focus.

Constructor Detail

FocusHandler

public FocusHandler()
Creates a new FocusHandler object.

Method Detail

focusGained

public void focusGained(FocusEvent e)
Invoked when combo box gains focus. It repaints main part of combo box accordingly.

Parameters: e the FocusEvent

focusLost

public void focusLost(FocusEvent e)
Invoked when the combo box loses focus. It repaints the main part of the combo box accordingly and hides the popup list of items.

Parameters: e the FocusEvent