Java JOptionPane Confirmation confirmationBox(String msg, String title)

Here you can find the source of confirmationBox(String msg, String title)

Description

confirmation Box

License

Open Source License

Declaration

public static boolean confirmationBox(String msg, String title) 

Method Source Code

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

import javax.swing.JOptionPane;

public class Main {
    public static boolean confirmationBox(String msg, String title) {
        int result = JOptionPane.showConfirmDialog(null, msg, title, JOptionPane.YES_NO_OPTION);

        if (result == JOptionPane.YES_OPTION) {
            return true;
        } else {/*from ww w  .  ja v  a 2s . com*/
            return false;
        }
    }
}

Related

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