Hi I have been having some trouble getting my images to display. I decided to try and create a java program that used radio buttons to display an image ..problem is the images will not display. I am using Eclipse and there are no red tag errors in my code ..so I am not sure what I am doing wrong.
I hope you can make sense of this ..I have been studying through RMIT open learning..I live in the country ..and I have been doing some New Boston Tutorials as well.
honestly I'm not to sure..I was just kind of trying a bunch of different things to see if they worked ..I was hoping someone could explain the best way to get the images to show. I am overwhelmed by the overall amount of different classes you can use in Java
and I have probably used the wrong kind of class to make the radio buttons active ..I guess I thought that if the action performed on the button means it is selected then show the appropriate image. It was a stab in the dark.
It might be worth going back to your ActionHandler and other classes, and writing on a piece of paper which image objects they are related to. You appear to be giving the ActionHandler an image as a field, which is good. So are you using that field to update the display?