Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: JAva GUI Help needed. Please Help

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JAva GUI Help needed. Please Help

    Can somebody please show what the rest of this code should look like. I have the GUI so far, but need help with the rest. Here is the Link to my code and the question to the problem is below.
    CarService - Pastebin.com

    RapidLube is a fast growing franchise that offers tremendous value for customers
    needing automotive maintenance services. Their current price list inclusive of all taxes
    (in USD) is as follows:
    Oil Change:
    •Natural : 19.95
    •Blend: 39.95
    •Synthetic: 49.95
    Tire Rotation: 60.00
    Muffler Replacement: 225.00
    Transmission Flush: 65.00
    Radiator Flush: 35.00
    In order to reward regular customers, the chain also offers a 10% discount off the total
    price.
    You are tasked with creating a GUI application (RapidLubeUI) to be used at their
    Point of Sale (POS) terminals with the following suggested specifications.
    The main application will open with a window as shown below with minimum size of
    600x200 pixels. Note the use of banner at the top and the buttons at the bottom. The main
    work area consists of sections: one for customer info, another for oil change and the third
    for maintenance services offered by Rapid Lube.
    The customer may optionally pick at most one type of oil change. However, a particular
    job may contain of any combination of maintenance items like Tire Rotation,
    Transmission Flush etc.
    The user interface will provide a quick way to estimate the total for a job. Clicking on the
    estimate button should bring up a dialog as follows detailing the estimated costs.
    A regular customer discount of 10% must be offered if the Regular Customer item is
    checked.
    The customer name cannot be empty for checkout. When the customer checks out,
    clicking on the checkout button will log the job (append data line) to a file named
    SalesLog.txt with following information: Timestamp, customer name and total
    amount as shown below.
    2010-Nov-29 08:45:31 AM, John Doe, 244.95
    Clicking on the exit button exits the application.
    NOTES:
    1. All dollar amounts presented should be restricted to two decimal places.
    2. Use of automated UI generating wizards is prohibited for this assignment
    3. You can use multiple classes as a project. In this case make sure you submit all
    project files in a single jar file.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: JAva GUI Help needed. Please Help

    Sorry, we don't do student's homework here. If you have any specific questions about your design or about your current code, post it here.

  3. #3
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: JAva GUI Help needed. Please Help

    Hey there pal! I've taken the liberty to write your program up for you, here you go:

    Content Blocked: Must have a Premium account to view this code.
    To unlock this content, donate £50 to newbieJPF@paypal.com.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  4. #4
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: JAva GUI Help needed. Please Help

    Quote Originally Posted by newbie View Post
    donate £50
    I'll do it for 40
    Improving the world one idiot at a time!

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: JAva GUI Help needed. Please Help

    Lot of bored programmers hanging around here.
    Don't you guys have jobs and work to do?
    Do your bosses know your spending time on these forums?

  6. #6
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: JAva GUI Help needed. Please Help

    Having a tad bit of fun != boredom (no !.equals() vs != jokes please ).
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  7. #7
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: JAva GUI Help needed. Please Help

    Quote Originally Posted by newbie View Post
    Hey there pal! I've taken the liberty to write your program up for you, here you go:

    Content Blocked: Must have a Premium account to view this code.
    To unlock this content, donate £50 to newbieJPF@paypal.com.
    haha nice.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  8. #8
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: JAva GUI Help needed. Please Help

    Where do you get a premium account?

    Try this:

    JFrame jf = new JFrame();

    jf.setMinimumSize(new Dimension(600, 200));

    As for the rest, start some code and I might be able to help you more.

  9. #9
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: JAva GUI Help needed. Please Help

    Quote Originally Posted by javapenguin View Post
    Where do you get a premium account?
    Oh cmon Javapenguin, really?
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

Similar Threads

  1. Very Simple Beginning Java Help Needed
    By lgore93 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 11th, 2011, 07:29 PM
  2. help needed with java...
    By amzz in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: April 12th, 2011, 03:33 AM
  3. simple java help needed
    By miss confused in forum What's Wrong With My Code?
    Replies: 6
    Last Post: June 27th, 2010, 12:29 PM
  4. Help needed on java array
    By rossfally in forum Collections and Generics
    Replies: 2
    Last Post: March 4th, 2010, 08:49 PM
  5. Urgent Help needed with java codes
    By makarov in forum Java Theory & Questions
    Replies: 0
    Last Post: November 13th, 2009, 07:23 AM