teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

2018/06/22 04:29

投稿

退会済みユーザー
answer CHANGED
@@ -17,7 +17,8 @@
17
17
  // TODO Auto-generated catch block
18
18
  e.printStackTrace();
19
19
  }
20
+ SwingUtilities.invokeLater(() ->
20
- toucher.setBackground(Color.red);
21
+ toucher.setBackground(Color.red));
21
22
  }
22
23
  }
23
24
  ```