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:
Elegant solution with colour translation:
static Paint black = Paint.valueOf(Integer.toHexString(Color.BLACK.hashCode())); TextField textfield; textField.setStyle( "-fx-control-inner-background: #"+black.toString().substring(2));