Inspiration
I wanted to create a virtual planner to track calories, sleep, and water intake to promote a healthy lifestyle for the user.
What it does
First, the user is prompted to enter their target numbers of calories to eat, hours of sleep, and glasses of water to drink for the day. Then they use the buttons to enter the numbers they actually achieved that day. The program gives a response of what improvements can be made in the future.
How we built it
This project was inspired by the Vending Machine program from my AP Computer Science Applications textbook. That project uses JButtons to buy items from a vending machine, so using that code as a reference, I created a new version in java using jGrasp.
Challenges we ran into
I was unsure how to use a jpeg as the background of my JFrame, since the setBackground() method only takes in a color, so that took me a while to figure out. Also, my JButtons only show up after the user hovers their mouse over it, and that has been an issue.
Accomplishments that we're proud of
I am proud of the aesthetic of my project. I think the functionality is not great yet, but I like the way it looks.
What we learned
I have not done much work with graphics before, so this was a fun way to explore the different classes and try out their methods. I learned how to work with JFrames, JPanels, and JButtons more.
What's next for Wellness Journal
In the future, I would make the Wellness Journal include a calendar so the user can go back to any specific day and see that day's stats. It would also include weekly and monthly averages to compare stats from week to week.
Built With
- java
- jgrasp
Log in or sign up for Devpost to join the conversation.