Q:

Java Applet - Choice Demo

0

This Program is used to Demonstrate the Applet Choice 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 cho1 extends Applet 
{ 
Choice c; 


public void init() 
{ 
c = new Choice(); 

c.addItem("Managing Director"); 
c.addItem("Human Resources"); 
c.addItem("Software Engineer"); 
c.addItem("Team Leader"); 
c.addItem("Senior Programmer"); 
c.addItem("Programmer"); 

add(c); 
} 
} 


/* <body> 
<applet code = "cho1.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