Computer Science, asked by Adarsh5050V, 4 months ago

example of java applets

Answers

Answered by misrabarnali594
2

Answer:

hope this answer will be helpful

Attachments:
Answered by OoExtrovertoO
3

Àñßwër ❤️⤵️:

Lifecycle of Java Applet

1. Applet is initialized.

2. Applet is started.

3. Applet is painted.

4. Applet is stopped.

5. Applet is destroyed

Simple example of Applet by appletviewer tool:

  • /First.java.
  • import java.applet.Applet;
  • import java.awt.Graphics;
  • public class First extends Applet{
  • public void paint(Graphics g){
  • g.drawString("welcome to applet",150,150);
  • }
  • }
Similar questions