Applet image display

March 22, 2022 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp
APPLET IMAGE DISPLAY:
import java.awt.*;
import java.applet.*;
   
public class AppletDisplayImage extends Applet {
 Image picture;
 public void init() {
setBackground(Color.yellow);
 }
 public void paint(Graphics g) {
g.drawImage(picture, 40,40, this);
 }
 
 }
OUTPUT:

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion