I would like to create a Pane with 2 rounded corners top-left and top-right, how can i do this in javafx? I know that u can use "border-top-left-radius" in normal css but it wont work under javafx. Until now I tried:
.calendar {
-fx-border-top-left-radius: 10px;
-fx-border-top-right-radius: 10px;
}
Thanks in advance,
Zombie
.calendar{
-fx-border-radius: 10 10 0 0;
-fx-background-radius: 10 10 0 0;
/* top-left, top-right, bottom-right, and bottom-left corners, in that order. */
}
来源:https://stackoverflow.com/questions/16564818/top-left-and-right-corner-rounded-in-javafx-css