title: javafx and css code to change hyperlink color on mouse hover
body: <p>I am working with java fxml application and i have one hyperlink, I want to change its color when mouse is over it and again revert back when mouse is exited from it. Can any body post some code to achieve it. I tried some css code but not working,</p>
  
  <pre><code>On mouse entered:-
   @FXML
      private void changeCloseColorToWhite() {
          hypLnkClose.setStyle("-fx-color: white;");
      }
  
  On mouse exited:-
  @FXML
      private void changeCloseColorToBrown() {
          hypLnkClose.setStyle("-fx-color: #606060;");
      }
  </code></pre>
  
  <p>Thanks in advance.</p>