Java JFrame setWinVisible(final JFrame win, final boolean vis)

Here you can find the source of setWinVisible(final JFrame win, final boolean vis)

Description

set Win Visible

License

Open Source License

Declaration

public static void setWinVisible(final JFrame win, final boolean vis) 

Method Source Code

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

import javax.swing.JDialog;
import javax.swing.JFrame;

import javax.swing.SwingUtilities;

public class Main {
    public static void setWinVisible(final JFrame win, final boolean vis) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                win.setVisible(vis);//from  w  w  w.  java 2 s  . c  o m
            }
        });
    }

    public static void setWinVisible(final JDialog win, final boolean vis) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                win.setVisible(vis);
            }
        });
    }
}

Related

  1. setMainWindowLocation(JFrame jfrm, String strPropertiesFilePath, String strPropertiesFileName)
  2. setPanel(JPanel parent, JPanel child, JFrame f)
  3. setPersistentExtendedStateMask(JFrame frame, int persistentExtendedStateMask)
  4. setWindowListenerDispose(JFrame frame)
  5. setWindowRightSide(final JFrame frame)
  6. smartSetBounds(JFrame frame)
  7. staggerOpenedFrames(List frames)
  8. storePrefsFrame(Preferences node, JFrame frame)
  9. tellUserToChoose(JFrame jFrame)