0

How do I set hyperlink color to black, which is by default blue?

source=new Hyperlink("source"); source.setFont(Font.font("Arial", 20));
source.setLayoutX(920); source.setLayoutY(900);  
source.setTooltip(new Tooltip("Github"));
layout.getChildren().add(source); // here layout is Pane layout

I want to set the color of source hyperlink to black.

Miss Chanandler Bong
  • 4,081
  • 10
  • 26
  • 36

1 Answers1

3

You can change it in CSS:

.hyperlink {
    -fx-text-fill: black;
}
Miss Chanandler Bong
  • 4,081
  • 10
  • 26
  • 36