Ok I have this assignment for java class. My Prof is indian(no offense, just hard to understand). I understand how I/O works, and I understand how GUI works, but I am having trouble putting them together. This is our assignment:
Question #1 - name it Contact.java. Write an application with a class or classes that implement the GUI components (shown below) with actions provided in the Table:1. Please note that this GUI without any actions has been implemented under Assignment 7 - Question #2 (Assignment 7). You need to write a file on C drive (name the file information.txt) that will store information: name, phone number and email. You may directly write these information with a delimeter and use StringTokenizer class to break the information when you read back.
Table: 1 Buttons Actions to be generated
When the name of a person is entered in the text field labelled as name and the button is clicked, phone number and email address are shown in the text fields labelled as phone and email respectively for that person stored in a disk file. If the information does not exist in the disk file, "NOT FOUND" is written in the first text area.
When all information (name, phone and email) are entered in the text fields and the button is clicked, the information is written in a disk file
Terminates the application
a picture of what I created is here:
and here is a link to what I have.
The program creates the information.txt file, but it does not pront the info to the file.
Any help would be greatly appreciated.