Here you can find the source of showConfirm(final Component rootComponent, final String message, final String title)
public static int showConfirm(final Component rootComponent, final String message, final String title)
//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); } }