Example usage for java.awt Cursor getSystemCustomCursor

List of usage examples for java.awt Cursor getSystemCustomCursor

Introduction

In this page you can find the example usage for java.awt Cursor getSystemCustomCursor.

Prototype

public static Cursor getSystemCustomCursor(final String name) throws AWTException, HeadlessException 

Source Link

Document

Returns a system-specific custom cursor object matching the specified name.

Usage

From source file:Main.java

public static void main(String[] args) throws HeadlessException, AWTException {
    Frame frame = new Frame();
    Button button1 = new Button("Ok");
    frame.add(button1, BorderLayout.NORTH);
    frame.setSize(50, 55);/*from   w w  w . j a v  a  2s .  co  m*/
    frame.setVisible(true);

    button1.setCursor(Cursor.getSystemCustomCursor("MoveDrop.32x32"));
}