I am trying to put rounded courders for the hbox but couldn't do it.
how to resolve this?
Thanks in advance.!
public void start(Stage primaryStage) {
VBox root = new VBox();
root.setPadding(new Insets(0,0,0,0));//top,Right,Bottom,Left
root.setStyle("-fx-background-color:#00BFFF");
HBox child1=new HBox();
child1.setPadding(new Insets(0,0,40,0));//top,Right,Bottom,Left
//child1.setStyle("-fx-background-color:#FFFFFF");
child1.setStyle("-fx-background-color:#FFFFFF;"+ "-fx-border-radius: 50 50 50 50;");