Q:

Java Applet - TextField Demo

0

This Program is used to Demonstrate the Applet TextField 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 tf1 extends Applet 
{ 
TextField t1,t2,t3; 


public void init() 
{ 
t1 = new TextField(10); 
t2 = new TextField(20); 
t3 = new TextField(30); 

add(t1); 
add(t2); 
add(t3); 
} 
} 


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