Folgendes hat nicht funktioniert:

frame.getContentPane().setBackground(Color.BLUE);

und

frame.setBackground(Color.BLUE);

und

frame.getContentPane().setBackground(new Color(0, 0, 0));