Java JOptionPane Message input(String message, String title)

Here you can find the source of input(String message, String title)

Description

input

License

Open Source License

Declaration

public static String input(String message, String title) 

Method Source Code


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

Related

  1. getStringInput(String message)
  2. getStrInPane(String message, String title)
  3. getUserInputString(String message)
  4. globalMessagebox(String body, String title, int icon)
  5. input(Component comp, String title, String message, Object def)
  6. inputMessage(String str1)
  7. log(String msg)
  8. message(Component comp, String title, String message)
  9. message(String s)