private String getColorName(Color c) {
		String[] colors = {"RED","GREEN","BLUE","MAGENTA","CYAN","YELLOW","BLACK"};

		String name = "Black";
		if (name!=null && name.length()>0) {
			if (c.equals(Color.red)) name = colors[0];
			else if (c.equals(Color.green)) name = colors[1];
			else if (c.equals(Color.blue)) name = colors[2];
			else if (c.equals(Color.magenta)) name = colors[3];
			else if (c.equals(Color.cyan)) name = colors[4];
			else if (c.equals(Color.yellow)) name = colors[5];
			else if (c.equals(Color.black)) name = colors[6];
		}
		return name;
	}