I really need to be guided by how to create a GUI in Java. I am a college student, and this is one of those things that they never focus on. I currently have the rest of my program configured and working, and now I'm trying to make a GUI. To do this, I create a new GUI class. (I have the impression that this is best suited for this). I kind of understand how to make a basic setup, but I donβt understand how to interact with the graphical interface later. I want to make a window at startup, and then it displays two snapshots next to the label for each bottom. I want the images to be clickable, and when I click on them, two new images are loaded (labels are replaced at the bottom). I have not done anything like this, and I have also come across many ways to add an image, and I am wondering if there is any best practice.
I can provide the code if necessary, but I did not think that it would be necessary in order to ask a question.
Thanks in advance for your help.
Rumel source share