idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
stopIcon = resourceMap.getIcon("StatusBar.stopIcon");
statusAnimationLabel.setIcon(idleIcon);
// connecting action tasks to status bar via TaskMonitor
TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
String propertyName = evt.getPropertyName();
//System.out.format("Task Property name: %s\n", propertyName);
if ("started".equals(propertyName)) {
if (!busyIconTimer.isRunning()) {