How can I get rid of these CSS warnings in my JavaFX user control?

I'm currently developing a JavaFX 8 user control and am going to make the first release available when Oracle releases the u20 JDK. After upgrading to this version, my control now launches a long list of CSS warnings that look like this:

"Failed to resolve" -fx-base "while allowing search for ' -fx-background-color ' from the rule ' *.test ' in the test.css stylesheet test.css "

Note: I do not call any of these suspicious methods: applyCSS() , layout() or impl_processCSS() .

What could be the reason?

+7
css javafx javafx-8
source share
1 answer

Messages were triggered by changes made by Oracle to the CSS engine. User controls that implement the Control.getUserAgentStylesheet () method are likely to call them. It has been proposed to fix this several times, but the release of 8u40 has moved the method to Region, and now it is fully supported. However, if your project also uses ControlsFX, you will still see them until you switch to ControlsFX 8.40.9.

0
source share

All Articles