Application-wide css

David Grieve david.grieve at oracle.com
Wed May 30 18:58:12 PDT 2012


Currently @-keyword statements are ignored and StyleManager isn't going to help you either. 

I'm not sure what @import buys you over adding the application wide stylesheet to the stylesheets property of Scene or Parent. I'm not saying it isn't something we shouldn't have. In fact, I could use it myself. But right now, ObservableList<String> getStylesheets() is all we have to work with.


On May 30, 2012, at 8:32 PM, Richard Bair wrote:

> I've been waiting for David or Jasper to respond :-)
> 
> Ping!
> 
> Richard
> 
> On May 25, 2012, at 8:15 AM, Werner Lehmann wrote:
> 
>> Hi,
>> 
>> is there a way to import one css into another? This would allow for an application wide stylesheet - to be imported by control or scene css. Usually that's the purpose of @import but according to the css reference, "@-keyword statements are ignored."
>> 
>> Alternatively, is it possible to do this in a central place, e.g. with the help of StyleManager?
>> 
>> Rgds
>> Werner
> 


David Grieve | Principal Member of Technical Staff
Mobile: +16033121013 
Oracle Java Client UI and Tools
Durham, NH 03824 
 Oracle is committed to developing practices and products that help protect the environment



More information about the openjfx-dev mailing list