← Technical work

02 · Java desktop application

JavaMart

A desktop store-management application covering catalog, customer, payment, transaction, and invoice workflows.

Year
2025
Focus
Catalog management · Customer records · Cart management · Transaction handling · Payment workflows · Invoice generation · Object-oriented design
Stack
Java · Java Swing · Java Standard Library
Context
Java coursework
Data
Text files
Implementation
File I/O · Persistent customer and product records · Quantity discounts · Tax calculations · Payment choices · Invoice generation
View repository

Overview

JavaMart is a Java desktop application with graphical and console interfaces for managing store operations. It models products and customers, then carries those records through cart, payment, and invoice workflows.

Context

This educational project offers a Swing interface and a separate text-based console mode for a small store workflow. Product, customer, and invoice records are stored in local text files rather than a database.

Implementation

The GUI loads catalog and customer data at startup, uses domain objects for products and customers, and keeps cart quantities in application state. It calculates quantity discounts and tax, offers full or installment payment choices, and saves customer transactions and invoices through separate actions.

Execution flow

User action → Swing or console workflow → product, customer, and cart update → discount and tax calculation → payment or invoice action.

Technical decisions

The GUI and console entry points use the same product and customer classes, while each maintains its own cart workflow. Text-file persistence keeps the project’s record updates easy to inspect.

Implementation highlights

The product and customer models hold catalog and transaction data. The cart, payment, and invoice handlers show quantity discounts, tax calculations, and separate payment and invoice actions. The sample product records show the file-backed catalog format.

Validation

The repository documents compilation and separate GUI and console launch commands. Its interface code also handles empty customer IDs, invalid inputs, and empty-cart cases before checkout.