Forum Discussion

SDChris85's avatar
SDChris85
New Contributor
10 years ago

Can we get JavaFX Label BackgroundFill properties?

I'm trying to access a javaFX label field property to determine the background color of the label. I drill all the way down to this property,

 

labelobj.background.value.BACKGROUND_COLOR.property.OleValue

 

but I'm getting the string "-fx-background-color" only and nothing else. Is there a way to get the actual color value in Test Complete?

 

In the javaFX code, they are setting the background color to this

 

labelobj.setBackground(new Background(new BackgroundFill(Color.GOLD, CornerRadii.EMPTY, Insets.EMPTY)));