Can you write a small complete program that compiles, executes and shows the problem?

--- Update ---

Have you read the API doc for the setBackground() method?