Java JOptionPane Confirmation confirm(String message, String title)

Here you can find the source of confirm(String message, String title)

Description

confirm

License

Open Source License

Declaration

public static boolean confirm(String message, String title) 

Method Source Code


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

import javax.swing.JOptionPane;

public class Main {
    public static boolean confirm(String message, String title) {
        return JOptionPane.showConfirmDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION,
                JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION;
    }/* w  ww.ja va2s.c  om*/
}

Related

  1. confirm(Component component, String title, String msg)
  2. confirm(final Component component, final String title, final String message)
  3. confirm(String message)
  4. confirm(String message)
  5. confirm(String message, boolean typeYesNo)
  6. confirm(String msg)
  7. confirm(String title, Object message, JComponent parent)
  8. confirmAction(Component comp, String title, String msg)
  9. confirmarEliminar(Component component, String titulo, String mensaje)