public class Main extends JFrame { public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() { public void run() {
Main mainForm = new Main();
mainForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mainForm.setSize(250, 250);
Cursor cursor = new Cursor(Cursor.HAND_CURSOR);
mainForm.setCursor(cursor);