Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Cursor;

import javax.swing.JFrame;

public class Main {
    public static void main(String[] args) {
        JFrame aWindow = new JFrame();
        aWindow.setBounds(200, 200, 200, 200);
        aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.CUSTOM_CURSOR));
        aWindow.setVisible(true);
    }
}