View on GitHub

Trainer

Java application which allows a user to keep track of any performed activity, storing all data in a SQL database.

Download this project as a .zip file Download this project as a tar.gz file

Trainer

Java application which allows a user to keep track of any performed activity, storing all data in a SQL database. Application performs statistical analysis and presents results in two graphs.

Application's UI with inserted data:

picture

The application stores records of user's activity in a database. Activities are inserted via middle panel Add new record, which allows to type activity's name and custom number representing for example repetitions of performed exercise:

picture

The list of activities' names which have been already inserted in the database are stored in the list Exercise names at the left side of the window.

picture

After clicking on the name it loads to the middle panel of the application.

History of user's activities is displayed on right side list, Exercise History which shows activity's name, included number as well as date and time of record's insertion in the database:

picture

The application's statistical analysis of stored data is displayed as two diagrams, Pie Chart representing the percentage of different activities by numbers of reps included in those activities:

picture

and a bar chart displaying activities in different colors, number of repetitions on Y scale and time of record's insertion on X scale.

picture


To generate a jar file of this project using maven:

  1. after cloning the project, open terminal in the project's main directory and type:

    mvn package

  2. Next go to generated target directory:

    cd target

  3. To run generated jar file enter:

    java -jar Trainer-jar-with-dependencies.jar