You are on page 1of 1

JFrame f = new JFrame("Activity");

f.getContentPane().setLayout(new FlowLayout());
JLabel fname = new JLabel ("First Name:");
f. add(fname);
f.getContentPane().add(new JTextField(" ", 10));
JLabel lname = new JLabel ("Last Name:");
f. add(lname);
f.getContentPane().add(new JTextField(" ", 10));
JLabel course = new JLabel ("Course:");
f. add(course);
f.getContentPane().add(new JTextField(" ", 10));
JLabel section = new JLabel ("Section:");
f. add(section);
f.getContentPane().add(new JTextField(" ", 10));
JLabel bday = new JLabel ("Birthday:");
f. add(bday);
f.getContentPane().add(new JTextField(" ", 10));
JLabel address = new JLabel ("Address:");
f. add(address);
f.getContentPane().add(new JTextField(" ", 10));
JLabel email = new JLabel ("E-mail Address:");
f. add(email);
f.getContentPane().add(new JTextField(" ", 10));
JLabel hpnum = new JLabel ("Handphone Number:");
f. add(hpnum);
f.getContentPane().add(new JTextField(" ", 10));
f.pack();
f.setVisible(true);