else if (e.getSource() ==butRetrieve)
       for (int i=0;i<Store.count;i++)
       {
           u=new Employee(myStore.elementAt(i));
           if(txtName.getText().equals(u.name)) 
           {  
               u=(Employee)myStore.elementAt(0);
               txtName.setText(u.name);
               txtPhonenum.setText(u.phoneNo);
               txtNi.setText(u.natInsceNo);
              
            }   
        }

Code in red is the problem, "cannot find symbol - constructor Employee(person)". Im a java virgin so please be gentle.

It means that such a constructor doesn't exist. Look at the Employee constructors. What do they take as argumentand what does the myStore.elementAt(i) return?

u=new Employee(myStore.elementAt(i));

Also shouldn't you be doing this:

u=(Employee)myStore.elementAt(i);
           if(txtName.getText().equals(u.name)) 
           {      
               txtName.setText(u.name);
               txtPhonenum.setText(u.phoneNo);
               txtNi.setText(u.natInsceNo);
            }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.