- A basic calculator with a GUI (a basic calculator that is in everyone's phone).
- Add, subtract, multiply, and divide numbers.
- Handle decimal, negative numbers, and percentage.
- Allow to pick a color theme among 5 options.
- Language: Java
- GUI Library: JavaFX, SceneBuilder
- IDE: IntelliJ IDEA
- Clone the repository.
- Open the folder in your IDE (I use IntelliJ).
- Run the 'MainApplication.java' file.
- Download the 'basicCalculator.jar' file.
- Run it using the below command in the folder that contains the JAR file (replace your path in):
java --module-path "C:\Program Files(where SDK is saved)\lib" --add-modules javafx.controls,javafx.fxml -jar basicCalculator.jar
- For example my command is:
java --module-path "C:\Users\AnhNg\IdeaProjects\openjfx-24_windows-x64_bin-sdk\javafx-sdk-24\lib" --add-modules javafx.controls,javafx.fxml -jar basicCalculator.jar
- It helped me to practice GUI layout and handle strings of calculation.
This project is for learning purposes only.

