0% found this document useful (0 votes)
5 views2 pages

Practical 1

Uploaded by

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

Practical 1

Uploaded by

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

import java.awt.

*;

import java.awt.event.*;

class practical1 extends Frame {

Label lbl;

Checkbox c1,c2,c3,c4;

practical1() {

super();

this.setTitle("language selection");

this.setLayout(new FlowLayout());

this.lbl = new Label("Select languages which you're familier with :)");

this.c1 = new Checkbox("Marathi");

this.add(this.c1);

this.c2 = new Checkbox("Hindi");

this.add(this.c2);

this.c3 = new Checkbox("Sanskrut");

this.add(this.c3);

this.c4 = new Checkbox("English");

this.add(this.c4);

this.addWindowListener(new WindowAdapter() {

public void windowClosing(WindowEvent e) {

dispose();

System.exit(0);

});

this.setSize(500, 300);

this.setVisible(true);

public static void main(String[] args) {

new practical1();

You might also like