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:
Try to set the color using CSS:
TextField colorBox0; colorBox0.setStyle("-fx-background-color: white;");