How to add ImageIcon to a JPanel

I am using a BorderLayout and attempting to add an icon to the east Panel. My code reads,

ImageIcon pizza = new ImageIcon(“pizza.jpg”);

I am getting an error saying that I need to change type of “pizza” to Component, but that does not solve the problem