Java

Java Applet - Choice Demo

Java Applet - Choice Demo
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> */
Senthilvelan Sambamoorthy

Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.