Use css file from local filesystem?

Hi, everyone)

For example.

My java code generated css file to filesystem, like is:

How i can use this file in Vaadin code, like is:

public class SettingsButton extends Composite<Div> {

    Icon icon;

    public SettingsButton(String color) {
        icon = new Icon(VaadinIcon.COG);



I can parse my file and do something like .getStyle().set(“params”,“value”), but
in this construction i can’t use selectors like(hover and …)

Have you tried this?

Stefan Uebe:
Have you tried this?

"You can place style sheets and other static resources in any folder inside your WAR file " Not all OS filesystem
UI.getCurrent().getPage().addStyleSheet(“default frontend folder”)