Slide background color not being set

I have the following code in Java that should set up the slide background color to blue.

slide.getBackGround().getFillFormat().setType( FillType.SOLID);

slide.getBackGround().getFillFormat().setForeColor( color.BLUE);

The slide colour does not change can you tell me if the above is correct.

PS I still have the red evaluation labals appearing on my slides as i haven't set up the license properly could this be stopping the background color being set

Hello,

The above code is correct but you forgot one more line:

slide.setFollowMasterBackground(false);

Thanks thats working now