204044ajp (Prac1)
204044ajp (Prac1)
package Applett(204044);
import java.awt.*;
Applett(){
setBackground(Color.LIGHT_GRAY);
l9.setBounds(220,50,120,22);
l9.setBackground(Color.black);
l9.setForeground(Color.white);
add(l9);
l1.setBounds(80,90,70,20);
l1.setBackground(Color.LIGHT_GRAY);
add(l1);
add(text1);
lll.setBounds(80,130,70,20);
lll.setBackground(Color.LIGHT_GRAY);
204044
add(lll);
add(textt);
Label l7 = new Label("ROLL NO.");
l7.setBackground(Color.LIGHT_GRAY);
add(l7);
add(text2);
add(l10);
choicee.add("1");
choicee.add("2");
choicee.add("3");
choicee.add("4");
choicee.add("5");
choicee.add("6");
choicee.add("7");
choicee.add("8");
choicee.add("9");
204044
choicee.add("10");
choicee.add("11");
choicee.add("12");
add(choicee);
Choice choice = new Choice();
choice.add("2005");
choice.add("2");
choice.add("3");
choice.add("4");
choice.add("5");
choice.add("6");
choice.add("7");
choice.add("8");
choice.add("9");
choice.add("10");
choice.add("11");
choice.add("12");
add(choice);
choice2.add("2005");
choice2.add("2");
choice2.add("3");
204044
choice2.add("4");
choice2.add("5");
choice2.add("6");
choice2.add("7");
choice2.add("8");
choice2.add("9");
choice2.add("10");
choice2.add("11");
choice2.add("12");
choice2.add("13");
choice2.add("14");
choice2.add("15");
choice2.add("16");
choice2.add("17");
choice2.add("18");
choice2.add("19");
choice2.add("20");
choice2.add("21");
choice2.add("22");
choice2.add("23");
choice2.add("24");
choice2.add("25");
choice2.add("26");
choice2.add("27");
204044
choice2.add("28");
choice2.add("29");
choice2.add("30");
choice2.add("31");
add(choice2);
add(l13);
l2.setBounds(80,290, 60,20);
textarea2.setBounds(170,290,200,100);
l2.setBackground(Color.LIGHT_GRAY);
add(l2);
add(textarea2);
add(l11);
204044
add(text4);
add(l12);
add(text5);
l3.setBounds(80,440,79,20);
l3.setBackground(Color.LIGHT_GRAY);
l4.setBackground(Color.LIGHT_GRAY);
add(l3);
add(l4);
cb1.setBackground(Color.LIGHT_GRAY);
cb2.setBackground(Color.LIGHT_GRAY);
cb3.setBackground(Color.LIGHT_GRAY);
204044
add(cb1);
add(cb2);
add(cb3);
l5.setBounds(80,580,30,20);
add(l5);
l5.setBackground(Color.LIGHT_GRAY);
list.setBounds(130,580,100,22);
list.add("1st Year");
list.add("2nd Year");
list.add("3rd Year");
add(list);
l6.setBounds(80,510,90, 20);
add(l6);
li.add("Computer");
li.add("Mechanical");
li.add("Civil");
li.add("Electrical");
li.add("E&TC");
li.add("Computer(IOT)");
204044
li.add("IT");
li.add("Science");
li.add("Commerce");
add(li);
add(l8);
add(ch1);
add(ch2);
b2.setBounds(230,650, 75,30);
add(b2);
b2.setBackground(Color.black);
b2.setForeground(Color.white);
setSize(800,700);
setTitle("First AWT Prject");
setLayout(null);
setVisible(true);
204044
g.setColor(Color.cyan);
g.drawRoundRect(100,100,100, 100,100,100);
g.fillRoundRect(70,45,400,638,100,100);
g.setColor(Color.blue);
setBackground(Color.GREEN);