Friday, January 31, 2014

How to come up with this gui application with list component?
































































































































































































































































Hello, I am learning Java on my own and I am taking on very small project by myself for fun, and I'm just stuck on this small part of the project.































































































































































































































































So I have created a text file that contains a small list of toy names and prices, like:
































































































































































































































































Barbie, 12.95































































































































































































































































Lego, 15.99































































































































































































































































Hot Wheels, 5.00































































































































































































































































Power Rangers, 6.49
































































































































































































































































And what I would like is my application to read the contents of the file and store the toy names in a list component. And then I want to be able to select a toy name from the list and add it































































































































































































































































to a shopping cart that is a list component as well. I want to the application to have menu items and buttons to allow me to remove items from the shopping cart, clear the shopping cart of all































































































































































































































































selections, and check out. When I check out, the application should calculate and display the subtotal of all the toy names in the shopping cart, the sales tax (which can just be 8 percent of































































































































































































































































the subtotal), and the total.
































































































































































































































































Please help create this simple application example I've just made up, and I'm going to add and use this example to create a bigger application myself. I truly appreciate it. Thank you!































































































































































































































































































































































































































































































































No comments:

Post a Comment