Java JOptionPane Confirmation retrieveUserConfirmation(String title, String message)

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

Description

retrieve User Confirmation

License

Open Source License

Declaration

public static boolean retrieveUserConfirmation(String title, String message) 

Method Source Code

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

import javax.swing.JOptionPane;

public class Main {
    public static boolean retrieveUserConfirmation(String title, String message) {
        return JOptionPane.showConfirmDialog(null, message, title,
                JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
    }//from w  w w .ja  v a  2  s. c o  m
}

Related

  1. getUserConfirmation(Component cp, String message)
  2. getUserConfirmation(String arg1)
  3. listConfirm(Component comp, String title, String message, Object[] listModel)
  4. pedeConfirmacao(String msg, int opcoes, int tipoMsg)
  5. quitConfirmed(Component parent, String message)
  6. showConfirm(final Component rootComponent, final String message, final String title)
  7. showConfirm(String message)
  8. showConfirmation(Component component, String message)
  9. showConfirmation(Component parent, String message)