Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JFrame;

public class Main extends JFrame {
    public static void main(String[] args) {
        Main frame = new Main();
        frame.setSize(100, 100);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.setVisible(true);
    }
}