- try
- {
- if (isJS())
- {
- @SuppressWarnings("unused")
- Object g = Thread.currentThread().getThreadGroup();
- return new URL(/**
- * @j2sNative g.秘html5Applet._appletPanel.appletCodeBase
- * ||
- */
- "");
- }
- } catch (MalformedURLException e)
- {
- }
- return null;
- }
-
- /**
- * load a resource -- probably a core file -- if and only if a particular
- * class has not been instantialized. We use a String here because if we used
- * a .class object, that reference itself would simply load the class, and we
- * want the core package to include that as well.
- *
- * @param resourcePath
- * @param className
- */
- public static void loadStaticResource(Object resourcePath,
- String className)
- {
- /**
- *
- * @j2sNative if (!swingjs.JSUtil.isClassLoaded$S(className))
- * swingjs.JSUtil.loadStaticResource$S(resourcePath);
- */