Hello, I have a project to complete where I need to create a system that stores Clients, Stock and Invoice data through a GUI.
I need to be able to store multiple unique records of 'Client' in an array that allows me to edit, delete & navigate through them one by one using GUI buttons Next/Previous to display each record in JTextFields.
The biggest issue for me, is I do not understand how I create a unique record each time, then save it, once saved how do I retrieve this information?
Here is what I have so far it's not a lot but as this is a new concept for me I just want it to work for clientID & Forename first as there is a vast amount of client information that needs to be stored, I am very stuck and do not know where to go from here, a point in the right direction or sample code would be fantastic.
class clientData{
//VARIABLES
int clientID;
String clientForename;
public clientData(int cID, String cFName){//DISPLAY METHOD
}
//<------------------------------------------------------------------------------------------------
public void setClientID(int cID){
clientID = cID;
}
public int getClientID(){
return clientID;
}
//<------------------------------------------------------------------------------------------------
public void setClientForename(String cFName){
clientForename = cFName;
}
public String getClientForename(){
return clientForename;
}
//<------------------------------------------------------------------------------------------------
public static void main(String[] args){
clientData[] firstClient = new clientData[0];
}
}
Thank you for your time.