How to use a swing timer to wait 1 second before continuing to execute code?

前端 未结 0 1227
太阳男子
太阳男子 2020-12-11 07:25

I literally just want to do the following:

System.out.println("First line");
// wait 1 second
button.setText("newText");

相关标签:
回答
  • 消灭零回复
提交回复
热议问题