Here you can find the source of colourToRgbString(Color colour)
public static String colourToRgbString(Color colour)
//package com.java2s; //License from project: Open Source License import java.awt.Color; public class Main { public static String colourToRgbString(int rgb) { return new String((rgb >> 16 & 0xFF) + ", " + (rgb >> 8 & 0xFF) + ", " + (rgb & 0xFF)); }//from w w w. j a va2 s .c om public static String colourToRgbString(Color colour) { return new String(colour.getRed() + ", " + colour.getGreen() + ", " + colour.getBlue()); } }