vendredi 25 août 2023

JavaFX Box of CheckBox Align Right

I want to align the .box portion of a CheckBox to the right. It is graphic only, so there is no text. Here's a picture where I set the .check-box to have a light blue background, so I can see the entire width of the Control.

CheckBoxScreenshot

No matter what I try, including -fx-alignment: center-right, -fx-text-align: right, or even changing the alignment of the HBox it's contained in to right, will change it.

How can I fix this?




Aucun commentaire:

Enregistrer un commentaire