Package ui
Class TBFlasher
- All Implemented Interfaces:
Runnable
,Future<Void>
,RunnableFuture<Void>
A class to flash the taskbar icon, if it is not focused.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
TBFlasher
Creates a window flasher object which can flash the window's taskbar text.- Parameters:
fr
- the frame which which this is to flashin0v
- the normal srite for this
-
-
Method Details
-
done
public void done()- Overrides:
done
in classSwingWorker<Void,
Void>
-
process
- Overrides:
process
in classSwingWorker<Void,
Void>
-
doInBackground
"Flash" the window's taskbar text if the window is not focused. Stop when the window becomes focused.- Specified by:
doInBackground
in classSwingWorker<Void,
Void> - Returns:
- nothing
-