Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.SwingUtilities;

public class Main {
    public static void doLater(long delay, final Runnable runnable) {
        Timer t = new Timer();
        t.schedule(new TimerTask() {
            @Override
            public void run() {
                SwingUtilities.invokeLater(runnable);
            }
        }, delay);
    }
}