Here you can find the source of showPrettyYesNoPane(Component caller, String msg, String title)
public static int showPrettyYesNoPane(Component caller, String msg, String title)
//package com.java2s; //License from project: Open Source License import java.awt.Component; import javax.swing.JOptionPane; public class Main { public static int showPrettyYesNoPane(Component caller, String msg, String title) {/* ww w. j a v a 2s .com*/ Object[] options = { "Yes", "No" }; return JOptionPane.showOptionDialog(caller, "<html><body><p style='width: 200px;'>" + msg + "</p></body></html>", title, JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]); } }