public class SwingPrompter extends Prompter
| Constructor and Description |
|---|
SwingPrompter() |
| Modifier and Type | Method and Description |
|---|---|
String |
prompt(String question,
String defaultValue)
Asks a question to the user and asks them to provide a value.
|
String |
promptPassword(String question) |
public String prompt(String question, String defaultValue) throws InterruptedException
Prompterprompt in class Prompterquestion - The string to be shown to the user. Don't add ':', '?' and so on in the end.InterruptedExceptionpublic String promptPassword(String question) throws InterruptedException
promptPassword in class PrompterInterruptedExceptionCopyright © 2016–2020. All rights reserved.