show Yes No Cancel Message Dialog - Java Swing

Java examples for Swing:JOptionPane

Description

show Yes No Cancel Message Dialog

Demo Code


//package com.java2s;
import javax.swing.JOptionPane;

public class Main {
    public static int showYesNoCancelMessage(String message, String a,
            String b, String c, String d) {
        return JOptionPane.showOptionDialog(null, message, "Confirm",
                JOptionPane.YES_NO_CANCEL_OPTION,
                JOptionPane.INFORMATION_MESSAGE, null, new Object[] { a, b,
                        c, d }, null);// w  w w .j  a v  a2s. c o m
    }
}

Related Tutorials