Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Java Swing Habit Tracker

This is a desktop habit tracker built with Java Swing.

What was fixed for desktop usage

  • 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.

Features

  • 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

Run as desktop app

javac HabitCalendarApp.java
java HabitCalendarApp

Optional: build a runnable JAR

javac HabitCalendarApp.java
jar cfe HabitTracker.jar HabitCalendarApp *.class
java -jar HabitTracker.jar

Data file location

The app stores data in:

  • ~/.habit-tracker-data.ser (Linux/macOS)
  • %USERPROFILE%\\.habit-tracker-data.ser (Windows)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages