A calculator desktop application created in Java. With full functionality of any calculator used for basic maths.
Eg. Basic Multiplication
This program uses the java swing package for carrying out and displaying all GUI-related functions.
The parent lass for keys are extended from JButtons provided in the swing class
All the calculator keys then extend the parent class, constructed with their corresponding display icon.
All the calculator keys are then added to the display in the CalculatorFrame Class
For the keys corresponding to math operations, when the key is pressed the number shown in the display is stored, as well as the actions corresponding to what action that key carries out. The button clicks are registered via an actionListener
When the equas key is pressed, the operation and operands from the display are stored and given to a specific function that carried out the operation on the given operands, showing the result to the display.
As an extra feature for aestheitcs, the look of the buttons and display is adjusted to match the operating system that the calculator is running on.
To run this program simply download the executable .jar file included. (Must have the Java Environment installed)


