Java JOptionPane Message showSuccessMessage(Component parentComponent, String message)

Here you can find the source of showSuccessMessage(Component parentComponent, String message)

Description

show Success Message

License

Open Source License

Declaration

public static void showSuccessMessage(Component parentComponent, String message) 

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 void showSuccessMessage(Component parentComponent, String message, String title) {
        showMessage(parentComponent, title, message, JOptionPane.INFORMATION_MESSAGE);
    }//  w w  w .jav a  2 s .co m

    public static void showSuccessMessage(Component parentComponent, String message) {
        showSuccessMessage(parentComponent, message, "Success");
    }

    public static void showSuccessMessage(String message) {
        showSuccessMessage(null, message);
    }

    public static void showMessage(Component parentComponent, String title, String message, int messageType) {
        JOptionPane.showMessageDialog(parentComponent, message, title, messageType);
    }
}

Related

  1. showMsg(final Container parent, final String message)
  2. ShowOkCancelMessage(String msg)
  3. ShowOkMessage(String msg)
  4. showPrettyYesNoPane(Component caller, String msg, String title)
  5. showQuestionThreeChoicesBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pMiddleOption, String pRightOption)
  6. showYesNo(Component parent, String title, String message)
  7. showYesNoCancel_old(Component parent, String title, String message)
  8. showYesNoMessage(Component parent, String message)
  9. testInput(String message)