public static String toColorString(java.awt.Color c) { return toColorString(c.getRGB());
public static String toColorString(int rgb) { char[] buf = new char[6]; int digits = 6; do { buf[--digits] = hexDigits[rgb & 15]; rgb >>>= 4; } while (digits != 0);  return new String(buf);
    public static String toColorString(java.awt.Color c) {        return toColorString(c.getRGB());    }