In 8u20, you can use @import in your .css file. That, along with Application#setUserAgentStylesheet(String), should do the trick. If I'm missing something, then please feel free to create a new feature request in JIRA.

On 6/12/14, 4:57 PM, Robert Krüger wrote:
Hi,

RT-18543 has been closed as not an issue with the following explanation:

API exists in Application for this:
http://download.java.net/jdk8/jfxdocs/javafx/application/Application.html#setUserAgentStylesheet-java.lang.String-

But that does not the same thing as it replaces the default (modena)
stylesheet, which is not what people asking this including the
original poster usually want (see also
http://stackoverflow.com/questions/16318517/how-do-i-dynamically-add-and-remove-css-for-the-whole-javafx-application).

What is the reason not to expose what
StyleManager.getInstance().addUserAgentStylesheet("...") does
somewhere in public API like in Application?

Thanks,

Robert

Reply via email to