Here you can find the source of getString(Component component, String message)
public static String getString(Component component, String message)
//package com.java2s; // under the terms of the GNU General Public License. For other license import java.awt.Component; import javax.swing.JOptionPane; public class Main { public static String getString(Component component, String message) { String value = JOptionPane.showInputDialog(component, message); return value; }/*from w ww .j a v a 2 s. c o m*/ }