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:
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:
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.
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:
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:
and a bar chart displaying activities in different colors, number of repetitions on Y scale and time of record's insertion on X scale.
To generate a jar file of this project using maven:
-
after cloning the project, open terminal in the project's main directory and type:
mvn package
-
Next go to generated
target
directory:cd target
-
To run generated jar file enter:
java -jar Trainer-jar-with-dependencies.jar