1 Reply Latest reply: Jul 30, 2013 1:16 PM by James_D RSS

    Load css file from s static Java method

    d5e39d0d-aae7-42fe-87c6-d1de6084adfe

      I want to load Java method from static Java method. I tested something like this:

      public class Foo {
      private static final String css;
              static {
                  css = this.getClass().getResource("/com/dx57dc/css/ButtonsDemo.css").toExternalForm();
              }
      }
      

       

      But this it's not working. Any idea how this can be solved?