In this repository I have build POS system by Java swing. It have 3 main views of which customer form, item form and order form. In each view we can create, update, delete and search customers, items and orders. Further, I have use Jasper reports to generate invoices, customer summary reports.
Before you run this project make sure you have satisfy following conditions,
- Install Java version 1.8.0/(above) type
java -version
in cmd to verify - Install MySQL Server version 8.0.15/(above) type
mysql -V
orSELECT VERSION()
to verify - Import this Database to your MySQL server (after import no need to keep that file in your project directory)
- Try to open the project in your favourite text editor
eg:- NetBeans IDE
, if you don't see any warning or errors your are good to go - Update following three variables in following java file, Row 24 of /src/db/DBConnection.java
- DB_NAME -> your database name
eg:- pos
- DB_USER -> User in MySQL server
default root
- DB_PASSWORD -> User password
default ""
- DB_NAME -> your database name
Since you do not have any data in your database you need to add some customers and items to database.
- Open src/view/customerForm.java and run this file (press
Shift + F6
) then add some customers. - Open src/view/itemForm.java and run this file (press
Shift + F6
) then add some items. - Then open src/view/orderFormNew.java and run this file (press
Shift + F6
) then try to add some orders. From this form, you can also access previous forms as well.
♦ In Each form after filling one feild pressing enter key will go to next feild.
♦ Selecting row in the table will load data back to specified feilds.
♦ To search any customer or item you can use customerId
or itemCode
feild respectively.