I am trying to change the background color of my TextField \"colorBox0\" to \"value0\" but it gets rid of the border. Here is a simplified version of my code:
I found that you can construct a string of css code out of a string and a variable by using the to string method and the substring method like this:
colorBox0 .setStyle("-fx-control-inner-background: #"+value0.toString().substring(2));