Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmcrafter26/java-macos-calculator-clone
This is a simple calculator clone for MacOS in Java. It is a simple project for my Java class. It is a simple calculator that can do the basics.
https://github.com/jmcrafter26/java-macos-calculator-clone
calculator calculator-java java java-fx javafx jmcrafter26
Last synced: 11 days ago
JSON representation
This is a simple calculator clone for MacOS in Java. It is a simple project for my Java class. It is a simple calculator that can do the basics.
- Host: GitHub
- URL: https://github.com/jmcrafter26/java-macos-calculator-clone
- Owner: JMcrafter26
- License: mit
- Created: 2024-06-17T18:29:54.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-23T13:55:44.000Z (6 months ago)
- Last Synced: 2024-06-24T14:59:55.304Z (6 months ago)
- Topics: calculator, calculator-java, java, java-fx, javafx, jmcrafter26
- Language: Java
- Homepage:
- Size: 2.49 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MacOS Calculator Clone in Java
This is a simple calculator clone for MacOS in Java. It is a simple project for my Java class. It is a simple calculator that can do the basics.
[![wakatime](https://wakatime.com/badge/user/bc316344-3491-45bf-9757-ebf0dd1cdca6/project/4084432b-52cb-49d4-bfc8-08fc460d3b07.svg)](https://wakatime.com/badge/user/bc316344-3491-45bf-9757-ebf0dd1cdca6/project/4084432b-52cb-49d4-bfc8-08fc460d3b07) (time only recorded at home)
## Installation
### Using the JAR file
You can download the JAR file from the [here](dist/Taschenrechner.jar). You can run it by double-clicking on it or by running the following command in the terminal:
```bash
java -jar Taschenrechner.jar
```### Building from source
You can download the project and run it in your favorite IDE. I used NetBeans for this project (I know, I know, I should use IntelliJ IDEA, but for my defense, I wrote the code in VS Code and used NetBeans to run it).
Additional things to mention:
- The project is in Java 8 (Don't ask me why, I don't know)
- The project uses JavaFX
- The project uses Ant## Usage
I think you know how to use a calculator, but here are some instructions:
- Click on a number to input it in the display
- Click on an operation to select it
- Tada! You have a result## Additional Functions
- Resize the window to see a more advanced calculator. It has more functions. (like square root, power, etc.)
- Drag the window from the left or right side to resize it
- Click on the result to delete the last digit## Screenshots
## Known Issues
- The calculator is not perfect. It is a simple project for a Java class
- If you entered the expert mode, you can't go back to the simple mode
- Input from the keyboard is not supported
- Glitches in the design
- `Taschenrechner` means calculator in German, I left it like that because I am a German student and I forgot to change it :skull:## Contributing and using the code
You are free to use the code in any way you want but don't expect much. It is a simple project for a Java class and I am still learning Java so the code is not perfect.
If you want to contribute, feel free to do so. I am always open to suggestions and improvements.
## License and Credits
[MIT](LICENSE)
The project is created by me, things that I used are:
- [JavaFX](https://openjfx.io/) - For the GUI
- [Inter Font](https://rsms.me/inter/) - For the font
- [Apple Calculator](https://support.apple.com/guide/calculator/welcome/mac) - For the design and inspiration
- StackOverflow and my Brain - For the codeYou made it to the end of the README. Congratulations! 🎉
Feel free to start this repo and check out my other projects on [GitHub](https://github.com/JMcrafter26) :smile: