Java JFrame isVisibleNotMinimized(JFrame frame)

Here you can find the source of isVisibleNotMinimized(JFrame frame)

Description

is Visible Not Minimized

License

Open Source License

Return

Returns true if the frame is visible, showing and not iconified.

Declaration

public static boolean isVisibleNotMinimized(JFrame frame) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

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

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

    /**
     * Assert we are in the event dispatching thread.
     */
    public static void assertEventDispatcherThread() {
        if (!SwingUtilities.isEventDispatchThread())
            throw new IllegalStateException("Not an AWT thread.");
    }
}

Related

  1. igualarFormularios(JFrame destino, JFrame origen)
  2. inputFiles(JFrame argParent)
  3. installEscapeCloseOperation(final JFrame dialog)
  4. internalizeFrame(JFrame frame)
  5. isAv(JFrame frame)
  6. jointButton(JFrame frame, final JButton button)
  7. loadImageToFrame(JFrame frame, BufferedImage image)
  8. locateForm(JFrame f, int x, int y, int w, int h)
  9. makeFullScreen(JFrame frame)