title: Java: Changing jLabel foreground color
body: <p>I am developing app in netbeans. I have some buttons which I want to change on mouse event (MouseEntered,...) On MouseEntered i have following code:</p>
  
  <pre><code>private void jButton5MouseEntered(java.awt.event.MouseEvent evt) {
        jButton5.setIcon(new ImageIcon(getClass().getResource("resources/menu2.png")));
         jLabel1.setForeground(Color.RED);
  }
  </code></pre>
  
  <p>I want it to change icon of that button and I also want to change foreground color of my jLabel1. I have problem with that jLabel1. It wont change. Why? Thank you</p>