So I'm tryin to enter some Datas in a form and stock them to display them in a array when i click of the button "Show" but i don't know how can i do that.
Here's my form :
import java.awt.*;
import java.awt.event.*;
public class test {
    public static void main(String[] args) {
        Frame frm=new Frame("Add employee");
        Label lbl = new Label();
        frm.add(lbl);
        frm.setSize(350,200);
        frm.setVisible(true);
        frm.addWindowListener(new WindowAdapter(){
            public void windowClosing(WindowEvent e){
                System.exit(0);
            }
        });
        Panel p = new Panel();
        Panel p1 = new Panel();
        Label jFirstName = new Label("first name");
        TextField lFirstName = new TextField(20);
        Label jLastName =new Label("last name");
        TextField lLastName=new TextField(20);
        Label jAge= new Label("Age");
        TextField lAge = new TextField(20);
        Label jDate =new Label("Date");
        TextField lDate=new TextField(20);
        Label jType = new Label("employee type");
        TextField lType = new TextField(20);
        p.setLayout(new GridLayout(7,1));
        p.add(jFirstName);
        p.add(lFirstName);
        p.add(jLastName);
        p.add(lLastName);
        p.add(jAge);
        p.add(lAge);
        p.add(jDate);
        p.add(lDate);
        p.add(jType);
        p.add(lType);
        Button Submit=new Button("Submit");
        p.add(Submit);
        p1.add(p);
        frm.add(p1,BorderLayout.NORTH);
    }
}
Do you have any idea ?
 
    