Help anyone... I'm creating a simple address book java program that would store 100 records. The GUI should be able to accept the name, address, phone no., and email add of a person by clicking a button named ADD. It should also be able to EDIT or DELETE a record and can VIEW ALL ENTRIES.
I have already INSTANTIATED the CLASS, and declared or created the necessary methods(accesso r, mutator & constructors) and the arrays(containe r). I also already created the FORM and the necessary textfield and buttons in it, in a separate CLASS under the same package. The codes for the FORM was automatically generated by the IDE.
My problem is that, how am I going to make the GUI FORM work. Meaning to ADD, EDIT, DELETE or VIEW the entries.
These are the codes so far:
Due to limitation of text per discussion, I am posting the codes of the GUI FORM in another discussion titled "Address Book(con't)".
I have already INSTANTIATED the CLASS, and declared or created the necessary methods(accesso r, mutator & constructors) and the arrays(containe r). I also already created the FORM and the necessary textfield and buttons in it, in a separate CLASS under the same package. The codes for the FORM was automatically generated by the IDE.
My problem is that, how am I going to make the GUI FORM work. Meaning to ADD, EDIT, DELETE or VIEW the entries.
These are the codes so far:
Code:
package addressbook1;
public class AddressBook1 {
private String name;
private String address;
private String telNum;
private String emailAdd;
public AddressBook1(String name, String address, String telNum, String emailAdd){
this.name = name;
this.address = address;
this.telNum = telNum;
this.emailAdd = emailAdd;
}
public String getName(){
return name;
}
public String getAddress(){
return address;
}
public String getTelNum(){
return telNum;
}
public String getEmailAdd(){
return emailAdd;
}
public void setName(String tempName){
name = tempName;
}
public void setAddress(String tempAddress){
address = tempAddress;
}
public void setTelNum(String tempTelNum){
telNum = tempTelNum;
}
public void setEmailAdd(String tempEmailAdd){
emailAdd = tempEmailAdd;
}
public static void main(String []args){
}
}
Due to limitation of text per discussion, I am posting the codes of the GUI FORM in another discussion titled "Address Book(con't)".
Comment