Q:

Java Applet - Button Demo

0

This Program is used to Demonstrate the Applet Button 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 but1 extends Applet 
{ 
Button b1,b2,b3; 


public void init() 
{ 
b1 = new Button("Submit"); 
b2 = new Button("Clear"); 
b3 = new Button("Exit"); 

add(b1); 
add(b2); 
add(b3); 
} 
} 


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