while (true) {
try { Thread.sleep(1000); } catch (InterruptedException e) {}
updateCounter();
}
// let's say you have a calendar with the beginning date
public void updateCounter() {
this.counterGUI.setTimeDisplayed(calendar.getTime());
}
thanks for your posting.
I have a failure in my description of the problem.
This way is clear ... a counter since a given date.
The problem is to programm a countdown.
A way is to compute the difference of the finish-date with the current-date and then take the hour-value ... but this works only for countdowns less then 24 hours.
ideas?