Here you can find the source of showMessage(Component parentComponent, String title, String message, int messageType)
public static void showMessage(Component parentComponent, String title, String message, int messageType)
//package com.java2s; //License from project: Open Source License import java.awt.Component; import javax.swing.JOptionPane; public class Main { public static void showMessage(Component parentComponent, String title, String message, int messageType) { JOptionPane.showMessageDialog(parentComponent, message, title, messageType); }//from www .j ava2 s.c o m }