If you set the color of the JMapPane it only uses this color on the second rendering which causes an odd effect.