Here you can find the source of inputMessage(String str1)
public static String inputMessage(String str1)
//package com.java2s; //License from project: Open Source License import javax.swing.JOptionPane; public class Main { public static String inputMessage(String str1, String str2) { return JOptionPane.showInputDialog(str1, str2); }//from ww w. j av a2s.c om public static String inputMessage(String str1) { return JOptionPane.showInputDialog(str1); } }