List of usage examples for java.awt Button setCursor
public void setCursor(Cursor cursor)
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. java 2 s .c o m frame.setVisible(true); button1.setCursor(Cursor.getSystemCustomCursor("MoveDrop.32x32")); }