Java JDialog messageDialog(String string, JDialog parentDialog)

Here you can find the source of messageDialog(String string, JDialog parentDialog)

Description

message Dialog

License

Open Source License

Declaration

public static void messageDialog(String string, JDialog parentDialog) 

Method Source Code

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

import javax.swing.JDialog;

import javax.swing.JFrame;

import javax.swing.JOptionPane;

public class Main {
    public static void messageDialog(String string, JFrame parentFrame) {
        JOptionPane.showMessageDialog(parentFrame, string);
    }/*from   w  ww. ja  v  a  2s  .  c  om*/

    public static void messageDialog(String string, JDialog parentDialog) {
        JOptionPane.showMessageDialog(parentDialog, string);
    }
}

Related

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