Here you can find the source of loadStyleSheet(Class> type)
static public String loadStyleSheet(Class<?> type)
//package com.java2s; //License from project: Open Source License import java.net.URL; public class Main { static public String loadStyleSheet(Class<?> type) { String name = type.getSimpleName(); URL url = type.getResource(name); if (url == null) url = type.getResource(name + ".css"); return url.toExternalForm(); }/* w w w . j a va 2 s . c o m*/ }