I tried to add a checkbox and style it using css style, but the checkbox is not appeared only the text display to user. the box is dissapeared
CheckBox checkBox = new CheckBox("I agree all terms and conditions");
checkBox.setId("tick");
checkBox.setLayoutX(490);
checkBox.setLayoutY(325);
and style sheet adding
scene.setUserAgentStylesheet(getClass().getResource("SignStyle.css").toExternalForm());
css
#tick{
-fx-text-fill: #fff;
-fx-font-size: 14px;
}
Aucun commentaire:
Enregistrer un commentaire