Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.EventQueue;

import javax.swing.JFrame;

public class Main {
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                JFrame frame = new ImageProcessingFrame();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
            }
        });
    }
}

class ImageProcessingFrame extends JFrame {
    public ImageProcessingFrame() {
        setTitle("ImageProcessingTest");
        setSize(200, 200);
    }

}