Here you can find the source of showMessage(String msg)
public static void showMessage(String msg)
//package com.java2s; // LICENSE: This file is distributed under the BSD license. import javax.swing.JOptionPane; public class Main { public static void showMessage(String msg) { JOptionPane.showMessageDialog(null, msg); }// w w w . j av a2 s . com }