Java tutorial
//package com.java2s; public class Main { public static void runAfter(int msSeconds, Thread thread) { try { Thread.sleep(msSeconds); } catch (InterruptedException e) { e.printStackTrace(); } thread.start(); } }