Here you can find the source of showDefaultCursor()
public static void showDefaultCursor()
//package com.java2s; //License from project: LGPL import javax.swing.*; import java.awt.*; import java.awt.event.MouseAdapter; public class Main { private static final MouseAdapter _mouseAdapter = new MouseAdapter() { };//from w w w . j a v a 2 s . com private static RootPaneContainer _root; /** Sets cursor for specified component to normal cursor */ public static void showDefaultCursor() { _root.getGlassPane().setCursor(Cursor.getDefaultCursor()); _root.getGlassPane().removeMouseListener(_mouseAdapter); _root.getGlassPane().setVisible(false); } }