Modifier and Type | Field and Description |
---|---|
protected int |
m_Delay
the delay between changing the icon in msec.
|
protected JLabel |
m_LabelIcon
the JLabel used for displaying the icon.
|
protected boolean |
m_Running
whether the animation is still running.
|
Constructor and Description |
---|
Animation(JLabel labelIcon,
int delay)
Initializes the runnable.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Performs the animation.
|
protected void |
show(int index)
Shows the specified
|
void |
stopAnimation()
Stops the animation.
|
protected JLabel m_LabelIcon
protected boolean m_Running
protected int m_Delay
public Animation(JLabel labelIcon, int delay)
labelIcon
- the label to use for displaying the icondelay
- the delay between icon changes in msecCopyright © 2017. All Rights Reserved.