Java JOptionPane Message getString(Component component, String message)

Here you can find the source of getString(Component component, String message)

Description

get String

License

Open Source License

Declaration

public static String getString(Component component, String message) 

Method Source Code


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

Related

  1. getInt(String message, int min, int max, Integer initialValue)
  2. getIntegerFromImput(String message, int min, int max)
  3. getIntegerInput(String message)
  4. getJOptionPaneIcon(int jOptionPaneMessageType)
  5. getPassword(String message)
  6. getStringInput(String message)
  7. getStrInPane(String message, String title)
  8. getUserInputString(String message)
  9. globalMessagebox(String body, String title, int icon)