MSCalculator is a beginner-friendly java swing project, in which every method handle one particular task, every class handle one particular process and every package handle a part of this Calculator, besides this, every method, class and package has the documentation comment; which help me and other programmers to know the functionality. All the calculation are done with help of the BigInteger
and BigDecimal
classes (So, there is no-any limit on the range of the integer or decimal). This calculator has Theme.java
and Style.java
interface which help to make any no. of themes and Styles for this project. The layout statements have reduced by using GridBagPanel.java
and make the code simpler. There are Assertions (added with the help of Assertion.java
) also in the code,
if(age <= 0) {
Assertion.throwErrorMessage(new Throwable("Wrong age filled!"));
return;
}
if the assertions are enabled.
Wrong age filled!
at com.gmail.mohitsainiknl2.Project.agechecker(Project.java: 120)
which help in the debugging process.
Simply by adding -ea
to -enableassertions
as vm argument at run configurations as
C:\> java -enableassertions -jar MSCalculator.jar
- Full Setup Size : 1.62 MB
- Programming Language : Java (JavaSE)
- Framework Used : AWT and Swing
- Encoding Used : UTF-8
- Operating System : Any (Platform Independent)
- JRE version : 1.8.0 or higher
- Development Environment : VS Code, Eclipse, IntelliJ IDEA
https://github.com/mohitsainiknl/MSCalculator/archive/refs/heads/master.zip
https://github.com/mohitsainiknl/MSCalculator/blob/master/publish/MSCalculator.jar
https://github.com/mohitsainiknl/MSCalculator/blob/master/publish/MSCalculator.exe
"Suggestions and project Improvements are Invited!"
Thanks a lot
Mohit Saini