// calculate the remaining time and then update the status panel
long now = System.nanoTime() / convertRateToMillis;// System.currentTimeMillis();
final long remainingTime = getDefaultTimerDuration()
+ getTimerStartTimestamp() - now;
final StatusPanel statPanel = statusPanel;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
statPanel.setProperty(StatusPanel.PROPERTY_VALUE,
remainingTime);
statPanel.setEnabled(true);
}
});
}
}