Q:

Java Applet - Label Demo

0

This Program is used to Demonstrate the Applet Label 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 la1 extends Applet 
{ 
Label l1,l2,l3; 


public void init() 
{ 
l1 = new Label("Name : "); 
l2 = new Label("Phone No.: "); 
l3 = new Label("Place : "); 

add(l1); 
add(l2); 
add(l3); 
} 
} 


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