# buildwithmobi/java_desktop_apps architecture

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

- Interactive diagram: https://gitdiagram.com/buildwithmobi/java_desktop_apps
- Repository: https://github.com/buildwithmobi/java_desktop_apps

## Overview

This repository is a collection of four independent Java desktop learning apps, not one integrated product. Users can create and study saved flashcards, interact with a fruit selector, log in, or manage to-do items. The flashcard builder/player and card model are supported by source excerpts; README documents the other apps’ capabilities, but their implementation details were not sampled. Accordingly, those branches show only documented high-level flows, not inferred controller or database call chains.

Main entry points: [`To-Do-App-main/src/main/java/sample/todoapp/Controller`](https://github.com/buildwithmobi/java_desktop_apps/tree/main/To-Do-App-main/src/main/java/sample/todoapp/Controller) (To-do interface), [`Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java`](https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java) (Card builder), [`Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java`](https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java) (Card player), [`Login-App-main/main/java/org/example/letsbuildlogin`](https://github.com/buildwithmobi/java_desktop_apps/tree/main/Login-App-main/main/java/org/example/letsbuildlogin) (Login forms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flashcards["Flashcards"]
  node_builder["Card builder"]
  node_card["Flashcard model<br/>[FlashCard.java]"]
  node_player["Card player"]
  node_cardfile["Card-set file"]
end

subgraph group_fruit["Fruit selector"]
  node_fruitapp["Fruit selector UI"]
end

subgraph group_login["Login app"]
  node_loginapp["Login forms"]
  node_login_db[("Login database")]
end

subgraph group_todo["To-do app"]
  node_todo_ui["To-do interface"]
  node_todo_tasks["Task management<br/>[Task.java]"]
  node_todo_users["User accounts<br/>[User.java]"]
  node_todo_db[("To-do database")]
end

node_user(("User"))

node_user -->|"creates cards"| node_builder
node_builder -->|"creates"| node_card
node_builder -->|"writes card set"| node_cardfile
node_user -->|"studies cards"| node_player
node_player -->|"loads card set"| node_cardfile
node_player -->|"displays card"| node_card
node_user -->|"selects fruit"| node_fruitapp
node_user -->|"submits credentials"| node_loginapp
node_loginapp -->|"validates login"| node_login_db
node_user -->|"manages to-dos"| node_todo_ui
node_todo_ui -.->|"manages tasks"| node_todo_tasks
node_todo_ui -.->|"manages accounts"| node_todo_users
node_todo_ui -->|"persists to-dos"| node_todo_db

click node_builder "https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java"
click node_card "https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCard.java"
click node_player "https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java"
click node_fruitapp "https://github.com/buildwithmobi/java_desktop_apps/tree/main/Fruit-List-AWT-main/src/main/java/org/example/fruitjavafx"
click node_loginapp "https://github.com/buildwithmobi/java_desktop_apps/tree/main/Login-App-main/main/java/org/example/letsbuildlogin"
click node_todo_ui "https://github.com/buildwithmobi/java_desktop_apps/tree/main/To-Do-App-main/src/main/java/sample/todoapp/Controller"
click node_todo_tasks "https://github.com/buildwithmobi/java_desktop_apps/blob/main/To-Do-App-main/src/main/java/sample/todoapp/Model/Task.java"
click node_todo_users "https://github.com/buildwithmobi/java_desktop_apps/blob/main/To-Do-App-main/src/main/java/sample/todoapp/Model/User.java"
click node_todo_db "https://github.com/buildwithmobi/java_desktop_apps/blob/main/To-Do-App-main/src/main/java/sample/todoapp/Database/DatabaseHandler.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_builder,node_card,node_player,node_cardfile,node_user toneBlue
class node_fruitapp toneAmber
class node_loginapp,node_login_db toneMint
class node_todo_ui,node_todo_tasks,node_todo_users,node_todo_db toneRose
```

## Components

### Flashcards

- [Card builder](https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java): `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java`
- [Flashcard model](https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCard.java): `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCard.java`
- [Card player](https://github.com/buildwithmobi/java_desktop_apps/blob/main/Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java): `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java`
- **Card-set file**

### Fruit selector

- [Fruit selector UI](https://github.com/buildwithmobi/java_desktop_apps/tree/main/Fruit-List-AWT-main/src/main/java/org/example/fruitjavafx): `Fruit-List-AWT-main/src/main/java/org/example/fruitjavafx`

### Login app

- [Login forms](https://github.com/buildwithmobi/java_desktop_apps/tree/main/Login-App-main/main/java/org/example/letsbuildlogin): `Login-App-main/main/java/org/example/letsbuildlogin`
- **Login database**

### To-do app

- [To-do interface](https://github.com/buildwithmobi/java_desktop_apps/tree/main/To-Do-App-main/src/main/java/sample/todoapp/Controller): `To-Do-App-main/src/main/java/sample/todoapp/Controller`
- [Task management](https://github.com/buildwithmobi/java_desktop_apps/blob/main/To-Do-App-main/src/main/java/sample/todoapp/Model/Task.java): `To-Do-App-main/src/main/java/sample/todoapp/Model/Task.java`
- [User accounts](https://github.com/buildwithmobi/java_desktop_apps/blob/main/To-Do-App-main/src/main/java/sample/todoapp/Model/User.java): `To-Do-App-main/src/main/java/sample/todoapp/Model/User.java`
- [To-do database](https://github.com/buildwithmobi/java_desktop_apps/blob/main/To-Do-App-main/src/main/java/sample/todoapp/Database/DatabaseHandler.java): `To-Do-App-main/src/main/java/sample/todoapp/Database/DatabaseHandler.java`

### Other components

- **User**

## Connections

- User → Card builder: creates cards (evidence: `README.md`)
- Card builder → Flashcard model: creates (evidence: `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java`)
- Card builder → Card-set file: writes card set (evidence: `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardBuilder.java`)
- User → Card player: studies cards (evidence: `README.md`)
- Card player → Card-set file: loads card set (evidence: `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java`)
- Card player → Flashcard model: displays card (evidence: `Flash-Cards-App-main/FlashCards/src/com/FlashCard/com/FlashCardPlayer.java`)
- User → Fruit selector UI: selects fruit (evidence: `README.md`)
- User → Login forms: submits credentials (evidence: `README.md`)
- Login forms → Login database: validates login (evidence: `README.md`)
- User → To-do interface: manages to-dos (evidence: `README.md`)
- To-do interface → Task management: manages tasks
- To-do interface → User accounts: manages accounts
- To-do interface → To-do database: persists to-dos (evidence: `README.md`)
