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.
Take some time of the holiday partying and drinking and make an atempt at it.
Post again if you get stuck with your code.
I'm struggling with this a long time but it is urgent for to do this in 1.5 hours.
What is your question?
where is your code?
what are you specifically having trouble with?
You started it too late then. Any specific part you are stuck with now?
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.
What he said....
Originally Posted by Fubarable
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.
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