Saturday, 5 October 2013

Your First Simple JAVA GUI Application

Hi Fellows, here i'm going to create a simple JAVA based GUI Application
Retail Price Calculator. I hope if you follow this example you'll able to create your own Simple JAVA GUI Applications:

Tools you need:

1. Eclipse IDE (Integrated Development Envoirnment) can be downloaded Here
2. JVM (JAVA Virtual Machine) should be installed on your PC.

Skills you need:

1. Basic Understanding of Creation of JAVA GUI Application for this i recommend this Book of Tony Gaddis "Starting Out With JAVA: From Control Structure through Objects". Currently its 5th edition is available for sale Here . But for students i have found a free version which you can feely download from Here. :)

I'm here going to give you solution of very simple Programming Problem
"Retail Price Calculator". First Understand the problem definition mentioned below use your concepts from the book i recommended you and try to make your own solution. If you have any problem then take help from my solution code. :) 

Problem Definition:

Create a GUI application where the user enters the wholesale cost of an item and its markup
percentage into text fields. (For example, if an items wholesale cost is $5 and its markup percentage is 100 percent* then its retail price is $10.) The application should have a button
that displays the item's retail price when clicked.

Possible Interface:


Solution Code:

I'll recommend that first you try to solve the above problem by yourself then if needed take help from my Code.. :) Here is the Solution (.rar).  


Finally, i will say thank you for visiting my web blog, I'll be very happy if you give your comments and suggestions for further improvements. Thank You!

Regards,
Mudassar Malik

No comments:

Post a Comment