Example usage for javax.swing JFrame isShowing

List of usage examples for javax.swing JFrame isShowing

Introduction

In this page you can find the example usage for javax.swing JFrame isShowing.

Prototype

public boolean isShowing() 

Source Link

Document

Checks if this Window is showing on screen.

Usage

From source file:Main.java

/**
 * @return Returns <code>true</code> if the frame is visible, showing and not
 *         iconified./* w w w  .j  a v  a 2s  . c  o m*/
 */
public static boolean isVisibleNotMinimized(JFrame frame) {
    assertEventDispatcherThread();

    return (frame.isVisible() && frame.isShowing() && (frame.getExtendedState() & JFrame.ICONIFIED) == 0);
}