Java JDialog rptaConfirmDialog(JDialog pJDialog, String pMensaje)

Here you can find the source of rptaConfirmDialog(JDialog pJDialog, String pMensaje)

Description

rpta Confirm Dialog

License

Open Source License

Declaration

public static boolean rptaConfirmDialog(JDialog pJDialog,
            String pMensaje) 

Method Source Code

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

import javax.swing.*;

public class Main {
    public static boolean rptaConfirmDialog(JDialog pJDialog,
            String pMensaje) {//  w w  w.  j  a v  a  2 s  .c  o  m
        int rptaDialogo = JOptionPane.showConfirmDialog(pJDialog, pMensaje,
                "Mensaje del Sistema", JOptionPane.YES_NO_OPTION,
                JOptionPane.QUESTION_MESSAGE);
        if (rptaDialogo == JOptionPane.YES_OPTION)
            return true;
        else
            return false;
    }
}

Related

  1. openDialog(final JDialog dialog)
  2. poseInsideScreen(JDialog component)
  3. positionDialogInContainer(JDialog dialog, Container frame, int horizontal, int vertical)
  4. renderDialog(JDialog thedialog, String szMessage, int noffsetx, int noffsety)
  5. resizeDialogToScreen(JDialog dialog)
  6. runProgressBar(final Runnable runnable, final JDialog dialog)
  7. setActionsMenu(JDialog dialog, MenuElement menu)
  8. setCursorFree(JDialog dialog)
  9. setDirty(JDialog dialog, boolean isDirty)