// System.out.println("Looking for " + nm + "; trying " + d.name);
public static int XColorByName(String nm) {
		for (int i=0; i<data.length; i++) {
			Setting d = data[i];
			// System.out.println("Looking for " + nm + "; trying " + d.name);
			if (nm.equalsIgnoreCase(d.name)) {
				return d.value;
			}
		}
		// How sad... none of the 752 color names matched...
		throw new IllegalArgumentException("Unknown color " + nm);
	}
for (int i=0; i<data.length; i++) {
Setting d = data[i];
// System.out.println("Looking for " + nm + "; trying " + d.name);
if (nm.equalsIgnoreCase(d.name)) {
return d.value;
public static int XColorByName(String nm) {
for (int i=0; i<data.length; i++) {
Setting d = data[i];
// System.out.println("Looking for " + nm + "; trying " + d.name);
if (nm.equalsIgnoreCase(d.name)) {
return d.value;
}
}
// How sad... none of the 752 color names matched...
throw new IllegalArgumentException("Unknown color " + nm);
}
public static int XColorByName(String nm) {
for (int i=0; i<data.length; i++) {
Setting d = data[i];
// System.out.println("Looking for " + nm + "; trying " + d.name);
if (nm.equalsIgnoreCase(d.name)) {
return d.value;
}
}
// How sad... none of the 752 color names matched...
throw new IllegalArgumentException("Unknown color " + nm);
}