An electric shop with simple GUI in Java.
Alex Antoniou @antonal01
Mateo Chronis @mateochr
- Common variables and functions for derived classes (TV, Console, Camera etc.).
- Getters and setters.
- Print method.
- Maximum reuse of code.
- Polymorphism when calling common functions.
- Common variables and functions for derived classes (Order, Sale).
- Contains a report for the device ordered/sold.
- Same properties apply as the class Item.
- Three classes that implement the list of available items, ordered items and sold items respectivly. All of them use the ArrayList structure.
- Getters and setters.
- Print method.
In this class the reading and writing of ITEM_LIST.txt, ORDER_LIST.txt, SALE_LIST.txt is implemented. This works like a database, the format of the txt files is specific. So after the reading, all the catalogues (AvailableCatalogue, OrderedCatalogue, SoldCatalogue) are initialized. When the app is closed the txt files are updated (e.g. new sales made).
In the main class the GUI is implemented along with all the functions that enable the user's interaction with the app.
- A folder with images that are used in the app.
- ITEM_LIST.txt: list with the items of the store.
- ORDER_LIST.txt: list with orders.
- SALE_LIST.txt: list with sales.
the txt files have a specific format
Open cmd on the same folder as the .java files, first run
javac mainApp.java
and then java mainApp