Hello fellow coding enthusiasts,
I am looking to find out how I can customize the color of a RadioButton dot. I want to have 3 RadioButtons, each with a different color to represent a state. Do I need to use CSS for this task? If so, could someone please guide me on how to achieve this?
An example scenario could be:
@FXML
public RadioButton redState = new RadioButton();
.
.
.
redState.setDotColor(red);
Or in FXML to statically define the color:
style="-fx-dot-color: rgb(255,0,0);"
I hope my plan is clear to everyone. The main goal is simply to change the color of the dot in a JavaFX RadioButton.
Thank you in advance for any assistance provided.