Java Calculator is a simple yet effective calculator application built using Java Swing for the graphical user interface and the Model-View-Controller (MVC) design pattern for a clean separation of concerns.
- User-Friendly GUI: The application offers an intuitive graphical interface for easy interaction.
- MVC Architecture: Ensures a well-structured codebase with clear separation between the data (Model), the user interface (View), and the control logic (Controller).
- Model (CalculatorModel.java): Manages the data and business logic.
- View (CalculatorView.java): Handles the display and user interactions.
- Controller (CalculatorController.java): Manages the flow of data and updates the view based on user inputs.
- Java Development Kit (JDK)
- Clone the repository:
git clone https://github.com/whdhdyt21/Java-Calculator-GUI-MVC.git
- Navigate to the project directory:
cd Java-Calculator-GUI-MVC/src/calculator
Compile the Java files:
javac *.java
Run the application:
java CalculatorMain
Follow the on-screen instructions within the GUI to perform basic arithmetic operations. The program is designed to be user-friendly with clear prompts for each action.
Contributions are welcome! Please fork this repository and submit a pull request for any enhancements or bug fixes.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
Thanks to everyone who has contributed to this project and helped improve it.
Feel free to customize this README according to your specific requirements and repository structure.