Java tutorial
//package com.java2s; import java.awt.Component; import java.awt.Cursor; public class Main { public static void setWaitCursorFor(Component frame) { frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); } }