Skip to content

Refactor keypad panels and add close button functionality - #7

Closed
CarsenGafford2 wants to merge 3 commits into
hethon:masterfrom
CarsenGafford2:carsengafford-test
Closed

Refactor keypad panels and add close button functionality#7
CarsenGafford2 wants to merge 3 commits into
hethon:masterfrom
CarsenGafford2:carsengafford-test

Conversation

@CarsenGafford2

Copy link
Copy Markdown
Contributor

Added a close button so the application can be both minimized and closed. Also added a "controls" JPanel so the application is capable of having multiple buttons in the toolbar.

Move scientific and basic keypad UI construction out of CalculatorView into new ScientificKeypadPanel and BasicKeypadPanel components. The panels encapsulate layout and button creation (append/wrap lists and control buttons) and expose getters for buttons; CalculatorView now instantiates these panels, aggregates their append/wrap button lists, and obtains references to AllClear/Del/Equals/Ans buttons from BasicKeypadPanel. This refactor reduces CalculatorView size and centralizes keypad layout logic with no functional behavior changes.
Added a close button so the application can be both minimized and closed. Also added a "controls" JPanel so the application is capable of having multiple buttons in the toolbar.
@CarsenGafford2
CarsenGafford2 deleted the carsengafford-test branch March 31, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant