Heads up! "WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve" messages

1,130 views
Skip to first unread message

David Grieve

unread,
Aug 30, 2012, 3:11:47 PM8/30/12
to jfxtr...@googlegroups.com
Typical warning message is: 

"WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.my-control *.my-button' in stylesheet jar:file:/somepath/jfxtras-labs/build/libs/jfxtras-labs-0.2-SNAPSHOT.jar!/jfxtras/labs/scene/control/gauge/extras.css"

This issue was first raised in https://forums.oracle.com/forums/thread.jspa?forumID=1385&threadID=2430102 and again in a private email exchange and I want JFXtras developers to be aware of the issue since the problem seems to be unique to JFXtras controls. I believe this is a bug in JavaFX, not in JFXtras. This happens on  J7u6 including JavaFX 2.2 and possibly other builds. I have created http://javafx-jira.kenai.com/browse/RT-24621 to track the issue on the JavaFX side. Please refer to the bug for more information and possible work around.


Gerrit Grunwald

unread,
Aug 30, 2012, 3:26:58 PM8/30/12
to jfxtr...@googlegroups.com, jfxtr...@googlegroups.com
A quick workaround for this problem would be to check if getScene() != null before adding nodes to the control. I fixed it locally in my controls in the JFXtras project (just waiting for the upgrade of master to 2.2 before I'll commit the changes).

Cheers,

Gerrit

--
You received this message because you are subscribed to the Google Groups "JFXtras Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-dev/-/pMBYPgwKyA4J.
To post to this group, send email to jfxtr...@googlegroups.com.
To unsubscribe from this group, send email to jfxtras-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jfxtras-dev?hl=en.
Reply all
Reply to author
Forward
0 new messages