ikayaki.gui
Class ComponentFlasher
java.lang.Object
javax.swing.Timer
ikayaki.gui.ComponentFlasher
- All Implemented Interfaces:
- Serializable
public class ComponentFlasher
- extends Timer
Timer used for flashing a JComponent background light red (or given color), for 100 ms (or given time).
- Author:
- Samuli Kaipiainen
- See Also:
- Serialized Form
Method Summary |
void |
flash()
|
Methods inherited from class javax.swing.Timer |
addActionListener, fireActionPerformed, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
component
private final JComponent component
componentBG
private final Color componentBG
flashcolor
private final Color flashcolor
defauldFlashColor
private static final Color defauldFlashColor
ComponentFlasher
public ComponentFlasher(JComponent component)
ComponentFlasher
public ComponentFlasher(JComponent component,
Color flashcolor)
ComponentFlasher
public ComponentFlasher(JComponent component,
int flashtime)
ComponentFlasher
public ComponentFlasher(JComponent component,
Color flashcolor,
int flashtime)
flash
public void flash()