FirstFrame.java Source code

Java tutorial

Introduction

Here is the source code for FirstFrame.java

Source

import javax.swing.JFrame;

public class FirstFrame extends JFrame {
    public FirstFrame() {
        setTitle("FirstFrame");
        setSize(300, 200);
    }

    public static void main(String[] args) {
        JFrame frame = new FirstFrame();
        frame.show();
    }
}