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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -