- // SwingJS can do this natively. Not implemented here because that would
- // introduce capabilities into JalviewJS that are not in Jalview/Java.
- switch (name.toLowerCase())
+
+ /*
+ * JSUtil provides code that will convert any web colour name to the
+ * AWT color; but preferred solution is to add these colours for Java
+ * also (preferably read from a resource file).
+ * NB there are some conflicts (differing colours for the same name)
+ * - see JAL-3368
+ */
+ /**
+ * @j2sNative
+ *
+ * return swingjs.JSUtil.getColorFromName$S(name);
+ */