JFrame frame = new JFrame("New Frame");
frame.setSize(1000,750);
frame.add(new myComponent());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.setBackground(Color.pink);
When I run this, the background in the frame still appears as white and not pink. Why?