В моем файле taskBckg.java
есть строка:
userInput.askGetInput("There were errors creating the file. " +
"Would you like to continue ahead with diagnostics? " +
"(Type \"y\" or \"yes\", or \"n\" or \"no\".) " +
"This will only take a minute.");`
Этот вызов на самом деле проходит через другой метод, и я пока не уверен, но я бы хотел как-то запросить ответ пользователя с помощью этого метода (задать вопрос и вернуть ответ) - есть идеи?
// ask question, and return a response...
public String askGetInput(String outText) {
// Update textArea with question
writeToTextArea(outText);
// Wait for the user to respond, and press the submit button
return uI.getText();
}
Не совсем уверен, как это сделать.