Why isn't the background of this image showing up red even when all the other set commands work?
JPanel jp =new JPanel();
JLabel jl =new JLabel();
public Trial1()
{
jp.setOpaque(false);
jp.setBackground(Color.ORANGE);
setTitle("name");
setVisible(true);
setSize(600,600);
setLocationRelativeTo(null);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//finding and adding image
jl.setIcon(new ImageIcon("location"));
jp.add(jl);
add(jp);
validate();