Example usage for java.awt Cursor toString

List of usage examples for java.awt Cursor toString

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a string representation of this cursor.

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);
    Cursor cursor = Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR);
    System.out.println(cursor.toString());

    aWindow.setVisible(true);/*from   w ww.j  a  va2 s .  co  m*/
}