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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -