title: How to change font color on Mouse enter and Mouse Exit in java
body: <p>I am Doing an Swing Application.I want to Change Text Color of the Buttons on <strong>MouseEntered</strong> and <strong>MouseExited</strong>.</p>
  
  <pre><code>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);
      }    
  </code></pre>
  
  <p>This is How i am Changing Background Color. How to Change Text color of the Button.</p>
  
  <p>Thanks in Advance.</p>