Java JOptionPane Confirmation showConfirm(final Component rootComponent, final String message, final String title)

Here you can find the source of showConfirm(final Component rootComponent, final String message, final String title)

Description

show Confirm

License

BSD License

Declaration

public static int showConfirm(final Component rootComponent, final String message, final String title) 

Method Source Code


//package com.java2s;
//License from project: BSD License 

import java.awt.Component;
import javax.swing.JOptionPane;

public class Main {
    public static int showConfirm(final Component rootComponent, final String message, final String title) {
        return showConfirm(rootComponent, message, title, JOptionPane.OK_CANCEL_OPTION,
                JOptionPane.INFORMATION_MESSAGE);
    }// ww w .  jav  a 2s. c om

    public static int showConfirm(final Component rootComponent, final String message, final String title,
            final int optionType, final int messageType) {
        return JOptionPane.showConfirmDialog(rootComponent, message, title, optionType, messageType);
    }
}

Related

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