how to set time delay between two frames in java -
i making quiz using java . want user 1 minute answer question.after 1 minute next question is next frame should displayed . how can without using threads?*
try timer:
int delay = 0; int period = 60000; timer timer = new timer(); timer.scheduleatfixedrate(new timertask() { public void run() { //jump next question }); } }, delay, period);
Comments
Post a Comment