Results 1 to 9 of 9
  1. #1
    amarenash23 is offline Member
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    0

    Default A crazy gui match

    Build a Java program to be used to record game scores in a text file and to retrieve and display them later. Example game score

    Galatasaray: 4 – Fenerbahce: 0

    The program should have a GUI that has text fields for inputting the following information.

    • Name of team 1
    • Score of team 1
    • Name of team 2
    • Score of team 2

    The program should make use of exceptions and methods of the String class (consult the API) to make sure of the following:

    - The score boxes should contain integers only
    - The team boxes should contain a single word each, starting with a capital and continuing in lowercase.

    The user should be allowed to enter up to 14 such game scores. When the user presses the “Save” button, he is displayed a file chooser GUI (see JFileChooser in your book and in the API). Using this GUI he selects an existing file or enters a new file name. The game scores are then written into this file.

    Alternatively, the user can press the “Load” button and select an existing file using JFileChooser. In this case, in a GUI component of your choice, display all the game scores that were in the chosen file, one per line.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Take some time of the holiday partying and drinking and make an atempt at it.
    Post again if you get stuck with your code.

  3. #3
    amarenash23 is offline Member
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    0

    Default

    I'm struggling with this a long time but it is urgent for to do this in 1.5 hours.

  4. #4
    gcampton Guest

    Default

    What is your question?
    where is your code?
    what are you specifically having trouble with?

  5. #5
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    You started it too late then. Any specific part you are stuck with now?

  6. #6
    amarenash23 is offline Member
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    0

    Default

    I'm in vacation for new year ceremony but our teacher sent us last minute homework and say submit this 'til 2 hours. The half of an hour already passed. What can I do? The only thing that I come with this site.

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    It's much more likely that you only decided to start this assignment with 2 hours to go. Next time I suggest that you start your assignments earlier and actually pay attention when you're in class. As it is, you are just going to have to accept the grade that you deserve for this assignment.

  8. #8
    gcampton Guest

    Default

    Quote Originally Posted by Fubarable View Post
    It's much more likely that you only decided to start this assignment with 2 hours to go. Next time I suggest that you start your assignments earlier and actually pay attention when you're in class. As it is, you are just going to have to accept the grade that you deserve for this assignment.
    What he said....

    No teacher is going to email you homework on NewYears and say submit this in 2 hours. What happens if you don't read your email for 2 days?

    Just tell your teacher, that you didn't read the email until the 2nd of January and give yourself a few days trying to figure it out.

  9. #9
    gcampton Guest

    Default

    Also don't double post it's damn rude...

    You sir have the maturity and intelligence of a drowned rat...
    New To Java - A match between two soccer teams

Similar Threads

  1. THIS PROGRAM IS DRIVING ME CRAZY!!! help fixing it
    By syntrax in forum New To Java
    Replies: 2
    Last Post: 12-18-2009, 04:27 AM
  2. Drives me crazy. How to mark thread Solved.
    By ocean in forum Forum Lobby
    Replies: 2
    Last Post: 12-07-2009, 08:42 AM
  3. Divide and Conquer@Array...im becoming crazy!
    By wyldstyle in forum New To Java
    Replies: 0
    Last Post: 08-23-2009, 09:20 PM
  4. Replies: 2
    Last Post: 11-04-2008, 02:48 AM
  5. Errors driving me crazy! although compiles fine
    By irishsea2828 in forum New To Java
    Replies: 1
    Last Post: 04-08-2008, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •