I\'m trying to implement a timer based scoring system for a puzzle application i am writing.
Can someone provide me with an example case of creating a JLabel or Pane
Thats a bit over-complicated. Instead of using seconds, minutes, hours, you could just use java.util.Date, and java.text.SimpleDateFormat for displaying the time passed.
start = new Date(); // time right now
sdf = new SimpleDateFormat("hh:mm:ss");
Then later to show what time has passed:
Date now = new Date();
sdf.format(new Date(now.getTime() - start.getTime()); //create a date based on time passed
This will have the same effect and be much clearer and more consise.