Back to Projects
Java Development
Completed

Expense Tracker (Java + Swing + MongoDB)

A multi-user desktop expense management application built with Java Swing and MongoDB, featuring secure authentication and layered architecture.

April 2026• Team: Personal Project• Role: Java Backend Developer
Expense Tracker (Java + Swing + MongoDB)

About this Project

Expense Tracker is a desktop-based financial management application developed using Java Swing for the user interface and MongoDB for persistent data storage. Designed with a layered architecture (UI → Service → DAO → Database), the application enables users to securely manage their personal expenses through authentication, expense categorization, search functionality, and real-time expense summaries. The modular design promotes maintainability, scalability, and clean software engineering practices.

Tech Stack

Java
Java Swing
MongoDB
JDBC
OOP

Tools Used

IntelliJ IDEA
MongoDB Compass
Git
VS Code

Key Features

Core Features

  • ▸Secure User Authentication: Implemented user registration and login to ensure personalized and secure access.
  • ▸Expense Management: Add, view, search, and delete expenses with an intuitive desktop interface.
  • ▸Expense Analytics: Automatically calculates total expenses, helping users monitor their spending habits.

Architecture & Technology

  • ▸Layered Architecture: Structured into UI, Service, DAO, and Database layers for improved scalability and maintainability.
  • ▸MongoDB Integration: Stores user credentials and expense records in a NoSQL database for efficient data retrieval.
  • ▸Object-Oriented Design: Built using Java OOP principles with modular classes and reusable components.

Learning Outcomes

  • ▸Desktop Application Development: Built a complete Java Swing GUI with event-driven programming.
  • ▸Database Integration: Learned CRUD operations, MongoDB connectivity, and efficient data handling.
  • ▸Software Engineering: Applied layered architecture and clean coding practices to build a maintainable application.

Highlights

Java Swing
MongoDB
Authentication
Layered Architecture

Installation

Clone the Repository

git clone <YOUR_GITHUB_REPOSITORY>
cd expense-tracker

Configure MongoDB

# Start MongoDB server
# Update database connection settings if required

Build the Project

javac -d bin src/**/*.java

Run the Application

java -cp bin Main

Challenges & Solutions

Challenge

Managing multiple users while keeping expense records private.

Solution

Implemented user authentication and linked every expense record to its respective user, ensuring complete data isolation.

Challenge

Maintaining a clean and scalable project structure.

Solution

Adopted a layered architecture separating UI, business logic, data access, and database operations to improve maintainability.

Challenge

Efficiently storing and retrieving expense records.

Solution

Integrated MongoDB to perform CRUD operations and optimize data storage for user-specific expense management.

Challenge

Creating a responsive desktop user interface.

Solution

Developed an intuitive Java Swing GUI with event-driven components, enabling smooth navigation and user-friendly interactions.

LinkedIn
GitHub