javax.swing.plaf.basic

Class BasicListUI.FocusHandler

public class BasicListUI.FocusHandler extends Object implements FocusListener

A helper class which listens for {@link FocusEvent}s from the JList.
Method Summary
voidfocusGained(FocusEvent e)
Called when the JList acquires focus.
voidfocusLost(FocusEvent e)
Called when the JList loses focus.
protected voidrepaintCellFocus()
Helper method to repaint the focused cell's lost or acquired focus state.

Method Detail

focusGained

public void focusGained(FocusEvent e)
Called when the JList acquires focus.

Parameters: e The FocusEvent representing focus acquisition

focusLost

public void focusLost(FocusEvent e)
Called when the JList loses focus.

Parameters: e The FocusEvent representing focus loss

repaintCellFocus

protected void repaintCellFocus()
Helper method to repaint the focused cell's lost or acquired focus state.