import [Link].
*;
import [Link].*;
import [Link].*;
class Myframe extends JFrame implements ActionListener{
JLabel a,b,c;
JTextField t1,t2;
JRadioButton M,F;
JButton Submit;
JTextArea x;
JCheckBox terms;
Myframe(){
setTitle("Form fill page");
setSize(700,500);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container Z=getContentPane();
[Link](null);
a=new JLabel("First name");
[Link](20,50,100,20);
[Link](a);
t1= new JTextField();
[Link](130,50,100,20);
[Link](t1);
b=new JLabel("Last name");
[Link](20,100,100,20);
[Link](b);
t2= new JTextField();
[Link](130,100,100,20);
[Link](t2);
c=new JLabel("Select your gender");
[Link](20,150,200,20);
[Link](c);
M=new JRadioButton("Male");
[Link](150,150,80,20);
[Link](M);
F=new JRadioButton("Female");
[Link](240,150,80,20);
[Link](F);
terms=new JCheckBox("Do you accept the terms and conditions?");
[Link](10,190,350,20);
[Link](terms);
Submit=new JButton("Submit");
[Link](110,220,100,20);
[Link](Submit);
[Link](this);
x=new JTextArea();
[Link](340,50,300,300);
[Link](x);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
public class GUI {
public static void main (String args[]) {
Myframe frame= new Myframe();
}
}