A JavaFX desktop dashboard for small clinics to manage users, patient records, inventory, and live status updates. Ships with demo users and sample patient/inventory data so you can explore the UI immediately, and supports CSV export for patients and users.
- Login: Starts at a credential screen; demo users are created on first launch.
- Patients: Add/edit/discharge patients, change rooms, and export patient lists to CSV.
- Inventory: View inventory items and quickly see critical/low stock counts.
- Status feed: Rolling activity feed with live status refreshes every 5s.
- Reports: One-click CSV exports for patients and users.
- Settings: Persist/clear last login info stored in a JSON file.
| Screen | Preview |
|---|---|
| Login | ![]() |
| Overview dashboard | ![]() |
| Patients | ![]() |
| Appointments | ![]() |
| Inventory | ![]() |
| Settings | ![]() |
| Status feed | ![]() |
| Reports | ![]() |
- Entry point:
com.example.clinic.MainAppwires the login view and, on success, opensDashboardView. - Users: Backed by SQLite in
storage/users.db; schema is auto-created and demo accounts are ensured on startup. - Demo logins (username ? role ? password):
ADMIN? Administrator ?Admin1234,DOCTOR? Doctor ?Doctor1234,NURSE? Nurse ?Nurse1234. - Settings: Last login info persists to
config/settings.jsonviaSettingsStore. - Exports: CSV files are written to the
exports/folder with timestamped filenames. - Styling: Custom styles live in
src/main/resources/styles/app.css.
- Java 21
- JavaFX 22 (controls/graphics) with
javafx-maven-plugin - SQLite via
sqlite-jdbc - JSON serialization with Jackson
- Maven for build/run
- JDK 21 installed and on your
PATH - Maven 3.9+ installed (
mvn -v)
# clone
git clone https://github.com/ZeroTrace0245/Project_Java.git
cd Project_Java
# download dependencies and build
mvn clean installUsing the JavaFX Maven plugin (recommended during development):
mvn javafx:runFrom the built jar (after mvn clean package):
java -jar target/clinic-manager-1.0.0.jarThe JavaFX runtime is pulled from Maven; no extra manual JavaFX install is needed when running with Maven.
- Run
mvn javafx:run. - Log in with a demo account (e.g.,
ADMIN/Admin1234). - Explore patients, add or edit entries, and try CSV export.
- Add a new user via New Employee and confirm it shows in staff count.
- Generate reports to see CSVs appear in
exports/.
src/main/java/com/example/clinic # JavaFX views and logic
src/main/resources # CSS and resource files
pom.xml # Maven build config
- Patient and user CSV exports land in
exports/. - User data persists to
storage/users.db; settings persist toconfig/settings.json. - The app starts from
com.example.clinic.MainApp(configured inpom.xml).







