Hey,
I'll come to ur doubt later.

I've a doubt in the last part of ur code.

The color returned by the ColorChooser is in variable 'newColor'.

But while setting the background color, u hav used another variable.
Is that OK?