Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import javax.swing.*;

public class Main {
    public final static void assertInEDT() throws IllegalStateException {
        if (!SwingUtilities.isEventDispatchThread()) {
            throw new IllegalStateException("This code must run in the EDT");
        }
    }
}