Skip to content

SabishiiKoto/Basic-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

  • A basic calculator with a GUI (a basic calculator that is in everyone's phone).

Features:

  • Add, subtract, multiply, and divide numbers.
  • Handle decimal, negative numbers, and percentage.
  • Allow to pick a color theme among 5 options.

Technologies Used

  • Language: Java
  • GUI Library: JavaFX, SceneBuilder
  • IDE: IntelliJ IDEA

How to run

Option 1: Run from source code

  1. Clone the repository.
  2. Open the folder in your IDE (I use IntelliJ).
  3. Run the 'MainApplication.java' file.

Option 2: Run JAR

  1. Download the 'basicCalculator.jar' file.
  2. 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

What I Learned / Why I Made This

  • It helped me to practice GUI layout and handle strings of calculation.

License

This project is for learning purposes only.

About

A basic calculator with a GUI written in java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages