```JFrame w= new JFrame();
w.setSize(1024, 768);
w.getContentPane().setVisible(false);
w.setBackground(Color.yellow);
StarPanel mp = new StarPanel();
w.add(mp);
w.show();
w.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
这个yellow把我的 mp对象里面的内容覆盖了,这是什么原因,之前我没加w.getContentPane().setVisible(false);的时候w.setBackground(Color.yellow);不起作用,但是mp里面的可以显示