You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed that there exists createButton() method in Calculator.java that returns a JButton, but it also updates the window when adding the button that is returned.
One path to take might be to split the method into two: getButton() and make use of the add() method outside the method. Only as a refactoring technique practice. Have a nice day!
The text was updated successfully, but these errors were encountered:
Hi, I noticed that there exists createButton() method in Calculator.java that returns a JButton, but it also updates the window when adding the button that is returned.
One path to take might be to split the method into two: getButton() and make use of the add() method outside the method. Only as a refactoring technique practice. Have a nice day!
The text was updated successfully, but these errors were encountered: