Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.awt.Cursor;

import java.awt.Image;
import java.awt.Point;
import java.awt.Toolkit;

public class Main {
    /**
     * Get an empty cursor
     * 
     * @return
     */
    public static Cursor createEmptyCursor() {
        Image cursorImage = Toolkit.getDefaultToolkit().createImage(new byte[] {});
        return Toolkit.getDefaultToolkit().createCustomCursor(cursorImage, new Point(0, 0), "cursor");
    }
}