Swingアプリケーションを実行しています。MouseEnteredおよびMouseExitedのボタンのテキストの色を変更したいと思います。
private void jButton2MouseEntered(java.awt.event.MouseEvent evt) {
this.jButton2.setBackground(Color.red);
}
private void jButton2MouseExited(java.awt.event.MouseEvent evt) {
this.jButton2.setBackground(Color.lightGray);
}
これが私が背景色を変更する方法です。ボタンのテキストの色を変更する方法。
前もって感謝します。