title: setCursor Method not Working on one MouseListener (Java)
body: <p>I have a MouseListener for a button that basically says when the mouse enters the vicinity of that button, it changes the cursor to the hand cursor. All my mouse listeners are working fine, but for some reason, this one single mouse listener isn't working. It is identical to all other MouseListeners.</p>
  <pre class="lang-java prettyprint-override"><code>viewAssignments.addMouseListener(new MouseAdapter() {
      public void mouseEntered(MouseEvent e) {
          // When mouse enters vicinity of a button, sets cursor to hand cursor.
          viewAssignments.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
      }
  
      public void mouseExited(MouseEvent e) {
          // When mouse exits vicinity of the button, sets cursor to default cursor.
          viewAssignments.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
      }
  });
  </code></pre>
  <p>Here is the single one that is not working:</p>
  <pre class="lang-java prettyprint-override"><code>about.addMouseListener(new MouseAdapter() {
      public void mouseEntered(MouseEvent e) {
          // When mouse enters vicinity of a button, sets cursor to hand cursor.
          about.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
      }
  
      public void mouseExited(MouseEvent e) {
          // When mouse exits vicinity of the button, sets cursor to default cursor.
          about.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
      }
  });
  </code></pre>
  <p>I am not sure why this one isn't working.</p>