Hi everyone, I'm new here and also fairly new at Java.
I'm working on a project (not for a class) that I can't figure out.
We have an applet that teaches basic programming skills, the part I currently wrestle with is referred to as a goal image panel.
Desired behavior -
Click on goal image button in the main applet, JFrame opens with goalImages on tabbed pages as JButton icon images. Student clicks an image, a new JFrame opens with just that one image for the student to refer to.
The number of goalImages is varies because this framework can be applied to other applets that might have a different number of images.
Everything works up to the part of clicking on the goalImage JButton to have that one image open in it's own JFrame.
JButtons are added to the selection form this way (4 per page, up to the number stored in imgNum)...
returns the JButton pressed, which I've printed to the console and there seems to be (among a lot of other stuff) a reference to defaultIcon = file:.... that I could use to set the image into the new JFrame, but I can't figure out how to access src's attributes.