I want to change the background color of the TextArea to the current color selected in ColorPicker. The problem is, TextArea has some depth and I can't directly change the background color of it through normal code.
How would I go about binding the background color of the textarea to the current color in colorpicker?
P.S. I know how to 'manually' change the background color of a TextArea through CSS. I want to do it through normal code. Here is how it works in CSS;
.text-area .content {
-fx-background-color: red;
}