Q:

Java Applet - List Demo

0

This Program is used to Demonstrate the Applet List 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 lis1 extends Applet 
{ 
List l; 


public void init() 
{ 
l = new List(); 

l.add("Java"); 
l.add(".NET"); 
l.add("Mainframe"); 
l.add("SAP"); 
l.add("CORBA"); 

add(l); 
} 
} 


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