Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to come up with this gui application involving list component?  RSS feed

 
Joey Keys
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Scott Winterbourne
Ranch Hand
Posts: 116
2
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch Joey.

Are you looking to create a desktop app with a UI or a web based app? If you are looking to make this as a web app I would look into web frameworks like Spring MVC, Struts, or Tapestry. If you are making a desktop app you should us Java Swing for the UI.

If you are new to Java I would suggest creating this app as a command line app first. This will allow you to focus on the design of your classes, methods and logic w/out worrying about all of the UI components right away. Once it is functioning the way you want it you can implement it as a Swing GUI app.

If you provide some more details about your programming level and how exactly you would like to implement this app we can be of further help to guide you.

Regards,
 
Joey Keys
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there! This is the small part of a pretty big project that I am working on. So I am just stuck on where to begin which such application, because I was just planning to reference this to create a similar application but with my twist to it. Interested in desktop app with a UI. If you can come up with the code for the application, it would be so helpful for me and I would greatly appreciate it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!