javax.swing.plaf.basic

Class BasicSliderUI.FocusHandler

public class BasicSliderUI.FocusHandler extends Object implements FocusListener

Helper class that listens for focus events.

UNKNOWN: Apparently this class was intended to be protected, but was made public by a compiler bug and is now public for compatibility.

Method Summary
voidfocusGained(FocusEvent e)
Called when the {@link JSlider} has gained focus.
voidfocusLost(FocusEvent e)
Called when the {@link JSlider} has lost focus.

Method Detail

focusGained

public void focusGained(FocusEvent e)
Called when the {@link JSlider} has gained focus. It should repaint the slider with the focus drawn.

Parameters: e A {@link FocusEvent}.

focusLost

public void focusLost(FocusEvent e)
Called when the {@link JSlider} has lost focus. It should repaint the slider without the focus drawn.

Parameters: e A {@link FocusEvent}.