List of usage examples for java.awt Cursor CUSTOM_CURSOR
int CUSTOM_CURSOR
To view the source code for java.awt Cursor CUSTOM_CURSOR.
Click Source Link
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 }