I'm a beginner to Java, and I'm trying to create a simple virtual library with a random book selection feature, which will occur at the click of a button named "Random".
So far in my project, I have a login form, register form, homepage and 3 books contained in their own respective jFrames. In the homepage jFrame, I would like to have a button that will randomly choose one of the 3 book jFrames and open it. However, it shouldn't be able to open any of the other jFrames (login and register). Is there a way that I can achieve this? I am using Netbeans IDE 12.2
Aucun commentaire:
Enregistrer un commentaire