Here you can find the source of unmaskWindow(W window)
public static <W extends Component & RootPaneContainer> void unmaskWindow(W window)
//package com.java2s; //License from project: Apache License import javax.swing.*; import java.awt.*; public class Main { public static <W extends Component & RootPaneContainer> void unmaskWindow(W window) { if (!window.isDisplayable()) { return; }/*w w w . j av a 2 s. c o m*/ window.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); if (window.getGlassPane() != null) { window.getGlassPane().setVisible(false); } } }