0% found this document useful (0 votes)
4 views9 pages

204044ajp (Prac1)

Uploaded by

AYAAN TAMBOLI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views9 pages

204044ajp (Prac1)

Uploaded by

AYAAN TAMBOLI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

204044

package Applett(204044);

import java.awt.*;

public class Applett extends Frame{

Applett(){

setFont(new Font("Seogoe UI", Font.BOLD, 12));

setBackground(Color.LIGHT_GRAY);

Label l9 = new Label("Registration");

l9.setFont(new Font("Seogoe UI", Font.BOLD, 20));

l9.setBounds(220,50,120,22);

l9.setBackground(Color.black);

l9.setForeground(Color.white);

add(l9);

TextField text1 = new TextField();

Label l1 = new Label("FIRST NAME");

l1.setBounds(80,90,70,20);

l1.setBackground(Color.LIGHT_GRAY);

text1.setBounds(160, 90, 150, 20);

add(l1);

add(text1);

TextField textt = new TextField();

Label lll = new Label("LAST NAME");

lll.setBounds(80,130,70,20);

lll.setBackground(Color.LIGHT_GRAY);

textt.setBounds(160, 128, 150, 20);

204044

add(lll);

add(textt);
Label l7 = new Label("ROLL NO.");

l7.setBounds(80,170, 70, 20);

l7.setBackground(Color.LIGHT_GRAY);

add(l7);

TextField text2 = new TextField();

text2.setBounds(160, 170, 55, 20);

add(text2);

Label l10 = new Label("Date Of Birth");

l10.setBounds(80, 210, 80, 20);

add(l10);

Choice choicee = new Choice();

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");

choicee.setBounds(170, 210, 40, 20);

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");

choice.setBounds(220, 210, 40, 20);

add(choice);

Choice choice2 = new 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");

choice2.setBounds(270, 210, 70, 20);

add(choice2);

Label l13 = new Label("Age (Years)");

l13.setBounds(80, 250, 70, 20);

add(l13);

TextField text6 = new TextField();

text6.setBounds(173, 250, 50, 20);


add(text6);

Label l2 = new Label("Address");

l2.setBounds(80,290, 60,20);

TextArea textarea2 = new TextArea();

textarea2.setBounds(170,290,200,100);

l2.setBackground(Color.LIGHT_GRAY);

add(l2);

add(textarea2);

Label l11= new Label("Email Id");

l11.setBounds(80, 400, 60, 20);

add(l11);

TextField text4 = new TextField();

text4.setBounds(160, 400, 150, 20);

204044

add(text4);

Label l12 = new Label("Mobile");

l12.setBounds(80, 620, 40, 20);

add(l12);

TextField text5 = new TextField();

text5.setBounds(130, 620, 100, 20);

add(text5);

Label l3 = new Label("Programming");

Label l4 = new Label("Languages");

l3.setBounds(80,440,79,20);

l4.setBounds(80,460, 65, 20);

l3.setBackground(Color.LIGHT_GRAY);

l4.setBackground(Color.LIGHT_GRAY);

add(l3);
add(l4);

Checkbox cb1 = new Checkbox("C", false);

Checkbox cb2 = new Checkbox("C++", false);

Checkbox cb3 = new Checkbox("DATA STRUCTURE", false);

cb1.setBounds(180, 440, 90, 20);

cb2.setBounds(180, 460, 94, 20);

cb3.setBounds(180, 480, 90, 20);

cb1.setBackground(Color.LIGHT_GRAY);

cb2.setBackground(Color.LIGHT_GRAY);

cb3.setBackground(Color.LIGHT_GRAY);

204044

add(cb1);

add(cb2);

add(cb3);

Label l5 = new Label("Year");

l5.setBounds(80,580,30,20);

add(l5);

l5.setBackground(Color.LIGHT_GRAY);

List list = new List();

list.setBounds(130,580,100,22);

list.add("1st Year");

list.add("2nd Year");

list.add("3rd Year");

add(list);

Label l6 = new Label("Department");

l6.setBounds(80,510,90, 20);

add(l6);

Choice li = new Choice();


li.setBounds(180, 510, 120, 0);

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);

Label l8 = new Label("Gender");

l8.setBounds(80, 545, 50, 20);

add(l8);

CheckboxGroup check = new CheckboxGroup();

Checkbox ch1 = new Checkbox("M",check, false);

ch1.setBounds(150, 545, 30, 20);

add(ch1);

Checkbox ch2 = new Checkbox("F",check, false);

ch2.setBounds(210, 545, 30, 20);

add(ch2);

Button b2 = new Button("Submit");

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

public void paint(Graphics g) {

g.setColor(Color.cyan);

//g.drawOval(80, 400, 150, 100);

g.drawRoundRect(100,100,100, 100,100,100);

g.fillRoundRect(70,45,400,638,100,100);

g.setColor(Color.blue);

setBackground(Color.GREEN);

public static void main(String args[]) {

Applett cont = new Applett();

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy