Here you can find the source of testInput(String message)
static String testInput(String message)
//package com.java2s; //License from project: Apache License import javax.swing.*; public class Main { static String testInput(String message) { return JOptionPane.showInputDialog(null, message, "Test", JOptionPane.PLAIN_MESSAGE); }/*from w w w .ja v a2 s. c o m*/ }