Java JOptionPane Confirmation confirm(Component component, String title, String msg)

Here you can find the source of confirm(Component component, String title, String msg)

Description

confirm

License

Open Source License

Declaration

public static final boolean confirm(Component component, String title, String msg) 

Method Source Code


//package com.java2s;
import java.awt.Component;

import javax.swing.JOptionPane;

public class Main {

    public static final boolean confirm(Component component, String title, String msg) {
        int rtn = JOptionPane.showConfirmDialog(component, msg, title, JOptionPane.OK_CANCEL_OPTION);
        return (rtn == JOptionPane.OK_OPTION);
    }/*from   ww w  .j a v  a 2s  .  com*/
}

Related

  1. askConfirmation(final Window aWindow, final String aMessage, final String aTitle)
  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)