
Make a GUI similar to the one above. I encourage you to make improvements. You can use this starter code.
Next; file IO. See Kjell chapters 83 and 84: Reading and writing text files.
1. Copy this text to a text file (perhaps "students.txt" ) and save in the same folder as your .java file:
Ann;Holder;12
Arthur;Smith;10
Erik;Paesel;12
Fred;Paesel;11
2. Create a Student class with 3 data members, first name, last name and grade.
3. When starting the program, read in the list of students and then display to the Text area. Do this in an appropriate method, such as ' void readStudents()'. Notice that you will want to create an array or Vector (recommended) of students. When reading the list of students, you'll want to read each line and then tokenize it: check out Kjell 49d pages 14 and 15. Notice that you are using a semi colon to divide your fields, as opposed to a space. Why would you want to do that?
|