Hello,
I am trying to set the border width to 1px but in some cases it is wider. For example in the following case:
public void start(Stage primaryStage) {
Group g = new Group();
BorderPane content = new BorderPane();
Label l = new Label("00:00");
content.setCenter(l);
g.getChildren().add(content);
content.setStyle("-fx-border-width: 1px;-fx-border-color: red;");
StackPane root = new StackPane();
root.getChildren().add(g);
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();
}
Is there some way how to avoid this behaviour?