# moradtalafha/mastering_git architecture

> Architecture diagram of the GitHub repository moradtalafha/mastering_git, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/moradtalafha/mastering_git
- Repository: https://github.com/moradtalafha/mastering_git

## Overview

This is a small Java Swing calculator. The user enters two numbers and an operation in the window, then uses Calc to see the result; Exit closes the application. Main launches the Calculator window, whose action listeners handle calculation and exit. The README only mentions a GUI feature, so the graph is based on the shown source; test.java is excluded as a test file.

Main entry points: [`Calculator.java`](https://github.com/moradtalafha/mastering_git/blob/main/Calculator.java) (Calculator GUI), [`Main.java`](https://github.com/moradtalafha/mastering_git/blob/main/Main.java) (Application launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_main["Application launcher<br/>[Main.java]"]
node_calculator["Calculator GUI<br/>[Calculator.java]"]

node_user -->|"starts"| node_main
node_main -->|"creates"| node_calculator
node_user -->|"enters and calculates"| node_calculator
node_calculator -->|"shows result"| node_user

click node_main "https://github.com/moradtalafha/mastering_git/blob/main/Main.java"
click node_calculator "https://github.com/moradtalafha/mastering_git/blob/main/Calculator.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user,node_calculator toneBlue
class node_main toneTeal
```

## Components

### Other components

- **User**
- [Application launcher](https://github.com/moradtalafha/mastering_git/blob/main/Main.java): `Main.java`
- [Calculator GUI](https://github.com/moradtalafha/mastering_git/blob/main/Calculator.java): `Calculator.java`

## Connections

- User → Application launcher: starts (evidence: `Main.java`)
- Application launcher → Calculator GUI: creates (evidence: `Main.java`)
- User → Calculator GUI: enters and calculates (evidence: `Calculator.java`)
- Calculator GUI → User: shows result (evidence: `Calculator.java`)
