I am Doing an Swing Application.I want to Change Text Color of the Buttons on MouseEntered and 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);
}
This is How i am Changing Background Color. How to Change Text color of the Button.
Thanks in Advance.