Java JDialog openDialog(final JDialog dialog)

Here you can find the source of openDialog(final JDialog dialog)

Description

Opens Swing dialog

License

Open Source License

Parameter

Parameter Description
dialog the dialog to open

Declaration

public static void openDialog(final JDialog dialog) 

Method Source Code


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

import javax.swing.*;

public class Main {
    /**//  w w  w  . j  a va 2s.  co  m
     * Opens Swing dialog
     * @param dialog the dialog to open
     */
    public static void openDialog(final JDialog dialog) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                dialog.setVisible(true);
            }
        });
    }
}

Related

  1. initialiseFrame(JDialog frame, JScrollPane viewport)
  2. isInsideScreen(JDialog component)
  3. jointButton(JDialog frame, final JButton button)
  4. makeJDialogCancellable(final Window w, final Action cancelAction, final boolean disposeOnCancel)
  5. messageDialog(String string, JDialog parentDialog)
  6. poseInsideScreen(JDialog component)
  7. positionDialogInContainer(JDialog dialog, Container frame, int horizontal, int vertical)
  8. renderDialog(JDialog thedialog, String szMessage, int noffsetx, int noffsety)
  9. resizeDialogToScreen(JDialog dialog)