MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class MainClass {

    public static void main(final String args[]) {
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JTextArea leftTextArea = new JTextArea();
        frame.add(leftTextArea);
        leftTextArea.paste();

        frame.setSize(250, 150);
        frame.setVisible(true);

    }
}