List of usage examples for java.awt Cursor getSystemCustomCursor
public static Cursor getSystemCustomCursor(final String name) throws AWTException, HeadlessException
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")); }