Results 1 to 9 of 9
Thread: A crazy gui match
- 12-30-2009, 02:43 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 4
- Rep Power
- 0
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.
- 12-30-2009, 02:47 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Take some time of the holiday partying and drinking and make an atempt at it.
Post again if you get stuck with your code.
- 12-30-2009, 02:48 PM #3
Member
- Join Date
- Dec 2009
- Posts
- 4
- Rep Power
- 0
I'm struggling with this a long time but it is urgent for to do this in 1.5 hours.
- 12-30-2009, 02:52 PM #4gcampton Guest
What is your question?
where is your code?
what are you specifically having trouble with?
- 12-30-2009, 02:52 PM #5
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
You started it too late then. Any specific part you are stuck with now?
- 12-30-2009, 02:54 PM #6
Member
- Join Date
- Dec 2009
- Posts
- 4
- Rep Power
- 0
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.
-
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.
- 12-30-2009, 03:35 PM #8gcampton Guest
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.
- 12-30-2009, 03:39 PM #9gcampton Guest
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
-
THIS PROGRAM IS DRIVING ME CRAZY!!! help fixing it
By syntrax in forum New To JavaReplies: 2Last Post: 12-18-2009, 04:27 AM -
Drives me crazy. How to mark thread Solved.
By ocean in forum Forum LobbyReplies: 2Last Post: 12-07-2009, 08:42 AM -
Divide and Conquer@Array...im becoming crazy!
By wyldstyle in forum New To JavaReplies: 0Last Post: 08-23-2009, 09:20 PM -
Please tell me I am not crazy... Time Complexity (Big-O) Question
By Jordan in forum New To JavaReplies: 2Last Post: 11-04-2008, 02:48 AM -
Errors driving me crazy! although compiles fine
By irishsea2828 in forum New To JavaReplies: 1Last Post: 04-08-2008, 03:23 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks