Java JOptionPane Message showInput(Component parent, String message, String initValue)

Here you can find the source of showInput(Component parent, String message, String initValue)

Description

Show a input dialog.

License

Open Source License

Parameter

Parameter Description
parent The parent of the dialog.
message The message to be displayed

Declaration

public static String showInput(Component parent, String message, String initValue) 

Method Source Code


//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;
    }
}

Related

  1. showException(String message, Exception ex)
  2. showExceptionMessage(Component parent, Throwable t)
  3. showExceptionMessage(Component parentComponent, Exception exception)
  4. showExceptionMessage(Exception e)
  5. showExceptionMessage(Exception e)
  6. showInput(String message)
  7. showInputInteger(String message)
  8. showInvalidJarPathMessage(String jarPath)
  9. showLog(int type, String title, String message)