Java JOptionPane Confirmation showConfirm(String message)

Here you can find the source of showConfirm(String message)

Description

show Confirm

License

Open Source License

Declaration

public static boolean showConfirm(String message) 

Method Source Code

//package com.java2s;
/*/*from w  ww .j a v  a 2  s  .c o m*/
 * Copyright (C) 2012-2015, Juan Manuel Barrios <http://juan.cl/>
 * All rights reserved.
 *
 * This file is part of P-VCD. http://p-vcd.org/
 * P-VCD is made available under the terms of the BSD 2-Clause License.
 */

import javax.swing.JOptionPane;

public class Main {
    public static boolean showConfirm(String message) {
        return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(null, message, "Warning",
                JOptionPane.YES_NO_OPTION);
    }
}

Related

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