This is a desktop habit tracker built with Java Swing.
- Added persistent storage, so your data is saved to a local file and restored when you reopen the app.
- Added explicit Save Data and Load Data buttons.
- Added auto-save on checkbox changes and when closing the window.
- Kept the monthly tracker design with date rows and habit checkbox columns.
- Track any number of habits for each day of a selected month.
- Navigate month-to-month.
- End-of-month analysis:
- Overall completion percentage
- Perfect day count
- Best full-completion streak
- Per-habit completion percentages
javac HabitCalendarApp.java
java HabitCalendarAppjavac HabitCalendarApp.java
jar cfe HabitTracker.jar HabitCalendarApp *.class
java -jar HabitTracker.jarThe app stores data in:
~/.habit-tracker-data.ser(Linux/macOS)%USERPROFILE%\\.habit-tracker-data.ser(Windows)