Java JOptionPane Confirmation showConfirmMessage(String message, Component component)

Here you can find the source of showConfirmMessage(String message, Component component)

Description

show Confirm Message

License

Apache License

Declaration

public static int showConfirmMessage(String message, Component component) 

Method Source Code


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

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

public class Main {
    public static int showConfirmMessage(String message, Component component) {
        int confirm = JOptionPane.showConfirmDialog(component, message, "Konfirmasi", JOptionPane.YES_NO_OPTION);
        return confirm;
    }//ww  w . j a v a 2s . co m
}

Related

  1. showConfirmDialog(Component parentComponent, Object message, String title)
  2. showConfirmDialog(final Component parent, final String title, final String message)
  3. showConfirmDialog(final Component parentComponent, final String message)
  4. showConfirmDialog(String message)
  5. showConfirmDialog(String title, String message)
  6. showQuestionConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption)
  7. showReplaceExistingFileConfirmDialog(Component parentComponent, File file)