Because you're using the bit operator on a Color object.
invoke Color.getRGB() first.