Java Socket Programming
Implement a client/server application in which a client communicates directly with a server. The server stores product and customer information in two separate files. The client application will allow a user to request product and customer information from the server. The server will retrieve and send the requested information to the client. The information will be displayed by the client in a user friendly manner. It is suggested that your application use Swing components to support a user friendly interface.
1.Client.java handles GUI using java swing components. It takes user inputs (product and customer information) as JText fields.
2.When connect Jbutton is pressed, data connection is established and data is sent to server. If connection failed, error is shown on user interface.
3.Server saved customer and product information on customerinfo.dat and productinfo.dat files respectively.
4.Server grants read-only rights for files to client.
5.Client.java read files. When Customer Information button is pressed, JPanel shows customer information after reading data from customerinfo.dat file.
6.When Product Information button is pressed, JPanel shows customer information after reading data from productinfo.dat file.
7.Socket connection is closed.
12 years ago
Purchase the answer to view it

- project.zip
