I am having a little(lot of..) trouble figuring out how to combine a GUI I have made and the code that goes with it.
I am vaugley familiar with action listener process, and I understand this is how to give functionality to buttons etc.
However, the part I cannot get my head around is:
I have a button that when pressed, loops through and array and prints out a correlating image.
Do I put this code in the GUI class or in my main class?
Any help no matter how small is welcome.