Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  form.java
Language: JAVA
Code:
     import java.awt.*;
import java.awt.event.*;
import java.applet.*;
class form extends Frame
{
    form()
    {
        Label l1,l2,l3,l4;
        l1=new Label("Registration form");
        l2=new Label("Name");
        l3=new Label("Father name");
        l4=new Label("email id");
        add(l1);
        add(l2);
        add(l3);
        add(l4);
        setVisible(true);
        setSize(500,500);
        setLayout(new FlowLayout());
    }
    public static void main(String args[])
    {
        form f=new form();
    }
}
Comments: