JLabel
一時的に変更したい があります。そのために書いたコードは次のとおりです。
infoLabel.setText("Added");
try {
TimeUnit.MILLISECONDS.sleep(300);
}
catch(InterruptedException ex)
{
}
infoLabel.setText("Action"); //funny part is when I comment this line it works
ラベルのデフォルトのテキストは「アクション」です