Java JOptionPane Message showInput(String message)

Here you can find the source of showInput(String message)

Description

show Input

License

Apache License

Declaration

public static Optional<String> showInput(String message) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Optional;
import javax.swing.JOptionPane;

public class Main {
    public static Optional<String> showInput(String message) {
        return Optional.ofNullable(JOptionPane.showInputDialog(message));
    }/*  ww  w. j  a va 2s .  c o m*/
}

Related

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