プログラム フローを JTextField のコメント形式でユーザーに表示したいと考えています。最後のメッセージ (「完了」) のみが表示されます。を呼び出すときに各メッセージを表示するにはどうすればよいsetText()
ですか?
private class CalculateButtonHandler implements ActionListener {
public void actionPerformed(ActionEvent e) {
String keyValue = keywordTF.getText();
currentTF.setText("calling 1");
methodCall1();
currentTF.setText("calling 2");
methodCall2();
currentTF.setText("calling 3");
methodCall3();
currentTF.setText("complete");
}
}