public static Color fromString(String string)
	{
		try
		{
			int i = Integer.decode(string);
			return new Color(i, true);
		}
		catch (NumberFormatException e)
		{
			return null;
		}
	}
@Test
	public void fromString()
	{
		String WHITE_MAX_ALPHA = "-1";
		String WHITE_ZERO_ALPHA = "0xffffff";
		String TOO_LARGE = "0xffffffff";
		String INVALID_FORMAT = "ffffff";

		assertEquals(Color.WHITE, ColorUtil.fromString(WHITE_MAX_ALPHA));
		assertEquals(ColorUtil.colorWithAlpha(Color.WHITE, 0), ColorUtil.fromString(WHITE_ZERO_ALPHA));
		assertNotEquals(Color.WHITE, ColorUtil.fromString(WHITE_ZERO_ALPHA));

		assertNull(ColorUtil.fromString(TOO_LARGE));
		assertNull(ColorUtil.fromString(INVALID_FORMAT));
	}