Java - Operation in a restricted time

Associate
Joined
23 Aug 2004
Posts
1,493
Hi, wonder If i can pick your guys brains.

I'm doing a piece of work on Human Computer Interaction. I've got to build an GUI that controls the percentage of 3 ingrediants and one control in a chocolate bar. The values can change randomly and require the user to correct them back to the correct level. If the user takes more than 3 seconds to change the value to it's correct level the batch must be scrapped.

In theory it doesn't sound too difficult but I've no experience of implementing time limit's in java. Is there a class that I can use which will handle the time aspect for me?
 
There are loads of classes in the library which you can use for timing. I suggest you consult the API or Google.
 
Back
Top Bottom