I have just started using JFrame and I have a button that when clicked will perform calculations and output a result and a button that clears all of the users inputs. I know that I need to create two new classes which implement Action Listener. When it comes to creating the classes.
I was wondering if it is better practice to create the classes within my class that creates the JFrame or to make two separate classes and use getters and setters to modify the content of my JFrame class.
Aucun commentaire:
Enregistrer un commentaire