Creates an invisible cursor - Java Swing

Java examples for Swing:Cursor

Description

Creates an invisible cursor

Demo Code


//package com.java2s;

import java.awt.*;

import java.awt.image.BufferedImage;

public class Main {
    /**/*from   ww w.  j  a  v a 2 s. c  om*/
     * Creates an invisible cursor
     *
     * @return the specified cursor
     */
    public static Cursor invisibleCursor() {
        return Toolkit.getDefaultToolkit().createCustomCursor(
                new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB),
                new Point(0, 0), "invisible_cursor");
    }
}

Related Tutorials