Q:

Java Applet - Checkbox Demo

0

This Program is used to Demonstrate the Applet Checkbox Component Program.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.awt.*; 
import java.applet.*; 
import java.awt.event.*; 

public class che1 extends Applet 
{ 
Checkbox c1,c2,c3; 


public void init() 
{ 
c1 = new Checkbox("B.Sc"); 
c2 = new Checkbox("M.Sc"); 
c3 = new Checkbox("MCA"); 

add(c1); 
add(c2); 
add(c3); 
} 
} 


/* <body> 
<applet code = "che1.class" height = 250 width = 250> 
</applet> 
</body> */

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now