Java JOptionPane Message showPrettyYesNoPane(Component caller, String msg, String title)

Here you can find the source of showPrettyYesNoPane(Component caller, String msg, String title)

Description

show Pretty Yes No Pane

License

Open Source License

Declaration

public static int showPrettyYesNoPane(Component caller, String msg,
            String title) 

Method Source Code

//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]);
    }
}

Related

  1. showMessageInEventQueue(final String message, final String title)
  2. showMessages(Component parent, List messages)
  3. showMsg(final Container parent, final String message)
  4. ShowOkCancelMessage(String msg)
  5. ShowOkMessage(String msg)
  6. showQuestionThreeChoicesBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pMiddleOption, String pRightOption)
  7. showSuccessMessage(Component parentComponent, String message)
  8. showYesNo(Component parent, String title, String message)
  9. showYesNoCancel_old(Component parent, String title, String message)