Java exercise I REALLY need help on
Okay last ditch effort. I've done everything my professor wants me to and now I have one last thing to do. I need to display an image when a check box is clicked. I've got my check boxes displayed and I know my image stuff is wrong but I'm so freaking exhausted I can no longer wrap my brain around the stuff. Here's the meat and potatoes of the code for the check boxes and if someone out there in Java Land can help me I will dance at your wedding!
on=new JCheckBox ("ON");
off=new JCheckBox ("OFF");
penguin= new ImageIcon ("ac.jpeg");
StyleListener listener=new StyleListener ();
private class StyleListener implements ItemListener
public void itemStateChanged (ItemEvent event)