Professional Documents
Culture Documents
Ajp 1
Ajp 1
: 53
Experiment No.: 01 DOS:
*Exercise
import java.awt.*;
}
}
Output
Name of Student: Ekambe Ganesh Roll No.: 53
Experiment No.: 01 DOS:
Code:
import java.awt.*;
class Subject_chk
{
public static void main(String[] args)
{
int i;
Frame fr=new Frame("select multiple languages ");
fr.setSize(350,300);
fr.setLayout(new FlowLayout());
fr.setVisible(true);
Checkbox box1=new Checkbox("Marathi");
Checkbox box2=new Checkbox("Hindi");
Checkbox box3=new Checkbox("English");
Checkbox box4=new Checkbox("Sanskrit");
fr.add(box1);
fr.add(box2);
fr.add(box3);
fr.add(box4);
}
}
Output
Name of Student: Ekambe Ganesh Roll No.: 53
Experiment No.: 01 DOS:
3. Write a program to create three Buttons with Caption OK, RESET and
CANCEL.
import java.awt.*;
fr.add(B1);
fr.add(B2);
fr.add(B3);
}
}
Output
Name of Student: Ekambe Ganesh Roll No.: 53
Experiment No.: 01 DOS: