Here you can find the source of input(String message, String title)
public static String input(String message, String title)
//package com.java2s; //License from project: Open Source License import javax.swing.JOptionPane; public class Main { public static String input(String message, Object initialSelectionValue) { return JOptionPane.showInputDialog(null, message, initialSelectionValue); }//w w w . j a va2s . co m public static String input(String message) { return input(message, "Input"); } public static String input(String message, String title) { return JOptionPane.showInputDialog(null, message, title, JOptionPane.QUESTION_MESSAGE); } }