if (!isJS() || data == null)
{
return;
- }
- /**
- * @j2sNative
- *
- * swingjs.JSUtil.cacheFileData$S$O(path, data);
- *
- */
+ } /**
+ * @j2sNative
+ *
+ * swingjs.JSUtil.cacheFileData$S$O(path, data);
+ *
+ */
}
public static void cacheFileData(File file)
{
BrowserLauncher.openURL(url);
return false;
- }
- /**
- * @j2sNative
- *
- *
- * window.open(url);
- */
+ } /**
+ * @j2sNative
+ *
+ *
+ * window.open(url);
+ */
return true;
}
public static Object parseJSON(String json) throws ParseException
{
- return (isJS() ? JSON.parse(json)
- : new JSONParser().parse(json));
+ return (isJS() ? JSON.parse(json) : new JSONParser().parse(json));
}
public static Object parseJSON(Reader r)
if (isJS())
{
System.out.println(
- "Platform adding known access-control-allow-origin * for domain "
- + domain);
- /**
- * @j2sNative
- *
- * J2S.addDirectDatabaseCall(domain);
- */
+ "Platform adding known access-control-allow-origin * for domain "
+ + domain);/**
+ * @j2sNative
+ *
+ * J2S.addDirectDatabaseCall(domain);
+ */
}
}
return Regex.perlCode(code);
}
- /**
+ /**
+ * Convert a color name to a Color object. SwingJS can do this natively.
* @param c
*/
public static Color getColorFromName(String name)
default:
return null;
}
-
}
}