Here you can find the source of showInput(Component parent, String message, String initValue)
Parameter | Description |
---|---|
parent | The parent of the dialog. |
message | The message to be displayed |
public static String showInput(Component parent, String message, String initValue)
//package com.java2s; //License from project: Open Source License import java.awt.Component; import javax.swing.JOptionPane; public class Main { /**//from www. ja v a 2 s . c om * Show a input dialog. * * @param parent * The parent of the dialog. * @param message * The message to be displayed */ public static String showInput(Component parent, String message, String initValue) { String input = null; input = JOptionPane.showInputDialog(parent, message, initValue); return input; } }