Java Swing Cursor showDefaultCursor()

Here you can find the source of showDefaultCursor()

Description

Sets cursor for specified component to normal cursor

License

LGPL

Declaration

public static void showDefaultCursor() 

Method Source Code


//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);
    }
}

Related

  1. setCursorDefault(Container cont)
  2. setWaitCursor(final Component c, final boolean wait)
  3. setWaitCursor(JComponent comp)
  4. showCursor(final Cursor cursor, final Component caller, final boolean includeParent, boolean immediate)
  5. showCursor(final Cursor cursor, final Component caller, final boolean includeParent, boolean immediate)
  6. showDefaultCursorOnWindow(Component caller)
  7. showDefaultCursorOnWindow(Component caller)
  8. startWaitCursor(JComponent component)
  9. startWaitCursor(JComponent component)