Here you can find the source of parseHexColor(String colorStr)
public static Integer parseHexColor(String colorStr)
//package com.java2s; public class Main { public static Integer parseHexColor(String colorStr) { Integer color = null;/* w ww .ja v a2 s . com*/ try { color = new Integer((int) Long.parseLong(colorStr, 16)); } catch (NumberFormatException e) { } return color; } }