0% found this document useful (0 votes)
92 views

Java Project

This document summarizes a Java project to create a digital shopping list application to reduce paper usage. The goals are to create a user-friendly interface to allow users to create, edit and delete shopping lists and items. It will outline the motivation to encourage technology usage over paper lists for environmental benefits. The overview discusses initial planning and challenges faced in implementation, including using vectors and files, designing the GUI, and resolving problems through research and testing. Future upgrades mentioned are developing it as an app and adding preset list features.

Uploaded by

api-509848173
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views

Java Project

This document summarizes a Java project to create a digital shopping list application to reduce paper usage. The goals are to create a user-friendly interface to allow users to create, edit and delete shopping lists and items. It will outline the motivation to encourage technology usage over paper lists for environmental benefits. The overview discusses initial planning and challenges faced in implementation, including using vectors and files, designing the GUI, and resolving problems through research and testing. Future upgrades mentioned are developing it as an app and adding preset list features.

Uploaded by

api-509848173
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Java Project:

Shopping List
Tim Gomez
Juan Tabarez
Oscar Pena
Motivation &
Contributions
• Many people still use paper shopping
list when doing grocery shopping. We
want to encourage the use of technology.
Replacing paper would have a positive
impact on the environment and fix some
of the common uses paper shopping list
have.
Goals
• Create a user-friendly interface which allow the user
to create a shopping list allowing them to add,
delete items from the list as well as create new ones
or delete old ones.
• Reduce the use of paper used on shopping list to
have a positive impact in the environment and
reduce pollution.
• Promote the use of technology in our daily life.
Overview

• We knew that shopping and memorizing items


is a real-world problem
• Now there do exist apps but we wanted to
implement our own way
• The first code was not very efficient so we
• Had to decide on a better implementation
• By the first time we meet to discuss our project
• We decided to create a GUI
Start of Project

• The project started with simple


Java code
• Involved PrintWriter and
FileWriter
• Faced problems with multiple
lists
First Coding
• Used Scanner class to
create an object
• This would be used to
get item name
• Code was all over the
place
• This lead to more
effective coding
Vectors
• Vectors became a focus point of
our code
• It was challenging for me because I
had not worked with Vectors
• It was used to create our shopping
List
• Included in the java.util.* library
Structure of Java
Code
• Used Extends for classes
• File and PrintWriter
• JFrame and Error Dialog Box
• Used Implements for classes
• JFileChooser allowed for Navigating
Files
GUI

• Became an easier way of


adding items
• By adding
buttons functions were
already implemented
• Didn’t need loops anymore
• Allowed us to do
more things are well
JFileChooser
• Java JSwing API
• Opens window to view files
• Returns a File object (The object is just the path)
• Needs to actaully open the file
• Can set default directory
Problems Solutions
Encountered
• Implementing the JFileChooser • Followed Documenations
• Ability to save files and access • Used what we learned in class
them • Tested different formats
• Creating a new file from a list • Used DropBox and manually
• Using Github merged changes
Future Upgrades

• Could be made into an app


• Use of Android Studio
• This will allow more interaction
• Have preset items
Citation Page
Eclipse Community Forums: WindowBuilder " How to useJFileChooser with WindowBuilder: The Eclipse Foundation. (n.d.).
Retrieved from https://www.eclipse.org/forums/index.php/t/1098707/

Anna.KleeAnna.Klee 5, & ArijitArijit 1. (1964, March 1). Add JFileChooser to Eclipse Window Builder.
Retrieved from https://stackoverflow.com/questions/24202474/add-jfilechooser-to-eclipse-window-builder

Java.util.Vector Class in Java. (2019, November 22). Retrieved from https://www.geeksforgeeks.org/java-util-vector-class-java/

You might also like