/**
* RGB 转 Color
*
*
* @param c
* @return
*/
private static Color parseToColor(final String c) {
Color convertedColor = Color.ORANGE;
try {
convertedColor = new Color(Integer.parseInt(c, 16));
} catch(NumberFormatException e) {
// codes to deal with this exception
}
return convertedColor;
}
网友评论