Paint() function problem



When setting up an application using the Jucer(experimental) why does the window get all messed up when including the paint() function? Everything is fine until I add

void paint(Graphics& g)…

After adding the function the app window goes black and the graphics get jumbled up etc…



Actually, I think I knwo where I’m going wrong. I have to add a main component which contains the paint() function. This then sits on top of the base window?