I am setting up a vbox and inserting hyperlinks into it.
Hyperlink clickableString;
clickableString = new Hyperlink();
clickableString.setStyle("-fx-text-fill: black;-fx-padding: 0; -fx-line-spacing: 0em;"); //setting the hyperlink color to black.
clickableString.setLineSpacing(0);
clickableString.setText("This is a test");
myVBox.getChildren().add(clickableString);
clickableString = new Hyperlink();
clickableString.setStyle("-fx-text-fill: black;-fx-padding: 0; -fx-line-spacing: 0em;"); //setting the hyperlink color to black.
clickableString.setLineSpacing(0);
clickableString.setText("This is a test");
myVBox.getChildren().add(clickableString);
I am aiming for minimal spacing between characters to maximize the available rows. Currently, there is approximately half-character height space between lines. Is there a way to adjust this more precisely?
Could the font itself be causing extra white space, making it impossible to eliminate it? Or is there some padding that can be modified?