Example usage for java.awt Cursor CUSTOM_CURSOR

List of usage examples for java.awt Cursor CUSTOM_CURSOR

Introduction

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

Prototype

int CUSTOM_CURSOR

To view the source code for java.awt Cursor CUSTOM_CURSOR.

Click Source Link

Document

The type associated with all custom cursors.

Usage

From source file:Main.java

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);//w w w  .ja  v  a 2 s . co m
}