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

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

Description

set Win Visible

License

Open Source License

Declaration

public static void setWinVisible(final JDialog 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);/*  w  ww.j  ava2s.com*/
            }
        });
    }

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

Related

  1. setActionsMenu(JDialog dialog, MenuElement menu)
  2. setCursorFree(JDialog dialog)
  3. setDirty(JDialog dialog, boolean isDirty)
  4. setHelpDialogLoc(JButton odsHelpButton, JDialog helpDialog)
  5. setSize(JDialog dialog, int width, int height)
  6. sizeDialog(JDialog dialog, int prefWidth, int prefHeight)
  7. waitForInput(JDialog view)