[go: up one dir, main page]

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

Program-1.2 //develop A Program To Select Multiple Languages Known To User (Eg. Marathi, Hindi, English, Sanskrit)

This Java program develops an applet that allows a user to select multiple languages they know by displaying checkboxes for Marathi, Hindi, English, and Sanskrit. The program imports necessary Java classes, defines a Lang class that extends Applet, initializes checkboxes for each language in the init method, and adds each checkbox to the applet.

Uploaded by

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

Program-1.2 //develop A Program To Select Multiple Languages Known To User (Eg. Marathi, Hindi, English, Sanskrit)

This Java program develops an applet that allows a user to select multiple languages they know by displaying checkboxes for Marathi, Hindi, English, and Sanskrit. The program imports necessary Java classes, defines a Lang class that extends Applet, initializes checkboxes for each language in the init method, and adds each checkbox to the applet.

Uploaded by

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

Program-1.

2
//develop a program to select multiple languages known to user (eg. Marathi,
Hindi,English,Sanskrit).
import java.awt.*;
import java.applet.*;
public class Lang extends Applet
{
public void init()
{
Checkbox m,h,e,s;
m=new Checkbox("Marathi");
h=new Checkbox("Hindi");
e=new Checkbox("English");
s=new Checkbox("Sanskrit");
add(m);
add(h);
add(e);
add(s);
}
}
/*<applet code ="Lang.class" width=500
height=300></applet>*/

You might also like