I\'ve inspected the Java class documentation for Color and found that I can generate a Color object from a hex code string (e.g. \"#FFFFFF\") using the Co
Color color = Color.BLUE;
Formatter f = new Formatter(new StringBuffer("#"));
f.format("%02X", color.getRed());
f.format("%02X", color.getGreen());
f.format("%02X", color.getBlue());
f.toString(); //#0000FF