Java Window unmaskWindow(W window)

Here you can find the source of unmaskWindow(W window)

Description

unmask Window

License

Apache License

Declaration

public static <W extends Component & RootPaneContainer> void unmaskWindow(W window) 

Method Source Code


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

Related

  1. setWindowOpacity(Window window, float opacity)
  2. show(final Container container, final boolean visible, Window appearOnLeftSide)
  3. show(JWindow window)
  4. showLater(final Window win)
  5. showMessageWindow(String message, JWindow parent)
  6. updateWindow(Window window)