import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Example{
public static void main
(String args
[])
{
b.setSize(400,400);
b.setVisible(true);
b.add(a);
a.setLayout(null);
l1.setBounds(250,100,150,30);
a.add(l1);
t1.setBounds(400,100,300,35);
a.add(t1);
l1
= new JLabel("mobile number");
l1.setBounds(250,150,150,30);
a.add(l1);
t2.setBounds(400,150,300,35);
a.add(t2);
l1.setBounds(250,200,150,30);
a.add(l1);
t3.setBounds(400,200,300,35);
a.add(t3);
l1.setBounds(250,250,150,30);
a.add(l1);
r1.setBounds(400,250, 100, 30);
r2.setBounds(500,250, 100, 30);
bg.add(r1);bg.add(r2);
a.add(r1);a.add(r2);
l1.setBounds(250,300,150,30);
a.add(l1);
String courses
[] = { "banglore",
"mysore",
"shimogga"};
c.setBounds(400, 300, 250, 30);
a.add(c);
l1.setBounds(250,350,150,30);
a.add(l1);
String places
[] = { "banglore",
"mysore",
"shimogga"};
c1.setBounds(400, 350, 250, 30);
a.add(c1);
l1.setBounds(258,388,80,50);
a.add(l1);
String mnth
[] = { "jan",
"Feb",
"Mar",
"Apr",
"may",
"june",
"july",
"Agu",
"Sep",
"Oct",
"Nov",
"Dec"};
c3.setBounds(339, 400, 80, 30);
a.add(c3);
l1.setBounds(430,400,50,30);
a.add(l1);
String date
[] = { "1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30"};
c4.setBounds(480,400,80,30);
a.add(c4);
l1.setBounds(570,400,60,30);
a.add(l1);
String time
[] = { "Morning",
"Night"};
c5.setBounds(630,400,90,30);
a.add(c5);
tnc.setBounds(335,460,10,10);
bg1.add(tnc);
a.add(tnc);
JLabel l2
= new JLabel("I agree to the Terms and Conditions");
l1.setBounds(350,450,350,30);
a.add(l1);
b1.setBounds(300, 520, 150, 30);
a.add(b1);
{
{
}
});
b2.setBounds(550, 520, 150, 30);
a.add(b2);
{
{
t1.setText(" ");
t2.setText(" ");
t3.setText(" ");
}
});
}
}