Java JOptionPane Confirmation showConfirmation(String msg)

Here you can find the source of showConfirmation(String msg)

Description

show Confirmation

License

Apache License

Declaration

public static boolean showConfirmation(String msg) 

Method Source Code

//package com.java2s;
/**/*w w w  .j  a v a  2  s. co  m*/
 * SlingBeans - NetBeans Sling plugin https://github.com/jkan997/SlingBeans
 * Licensed under Apache 2.0 license http://www.apache.org/licenses/LICENSE-2.0
 */

import javax.swing.JOptionPane;

public class Main {
    public static boolean showConfirmation(String msg) {
        int res = JOptionPane.showConfirmDialog(null, msg, "Confirmation", JOptionPane.YES_NO_OPTION);
        return (res == 0);
    }
}

Related

  1. retrieveUserConfirmation(String title, String message)
  2. showConfirm(final Component rootComponent, final String message, final String title)
  3. showConfirm(String message)
  4. showConfirmation(Component component, String message)
  5. showConfirmation(Component parent, String message)
  6. showConfirmationDialog(Component parent, String message)
  7. showConfirmationDialog(String title, String question)
  8. showConfirmDialog(Component parentComponent, Object message, String title)
  9. showConfirmDialog(final Component parent, final String title, final String message)