Java tutorial
//package com.java2s; import java.awt.Color; public class Main { public static Color parseToColor(String rgbString) { if (rgbString == null) return null; int rgb = Integer.valueOf(rgbString); return new Color(rgb); } }