0

can anyone give an example of java applet?

3rd Jan 2017, 1:54 PM
Deepika Tripathi
Deepika Tripathi - avatar
5 Answers
+ 1
An applet is a Internet-based program written in java, a programming language for the Web. The applet is also able to run in HTML. The applet is usually embedded in an HTML page on a Web site and can be executed from within a browser.
4th Jan 2017, 6:01 PM
Niloy Rashid
Niloy Rashid - avatar
+ 1
okay thank you i somewhat get it .
4th Jan 2017, 6:33 PM
Deepika Tripathi
Deepika Tripathi - avatar
+ 1
its ok :) and u always have google and youtube for learning farther. tc
4th Jan 2017, 6:55 PM
Niloy Rashid
Niloy Rashid - avatar
0
/*         Basic Java Applet Example         This Java example shows how to create a basic applet using Java Applet class. */   import java.applet.Applet; import java.awt.Graphics;   /*         <applet code = "BasicAppletExample" width = 200 height = 200>         </applet> */ public class BasicAppletExample extends Applet{                 public void paint(Graphics g){                 //write text using drawString method of Graphics class                 g.drawString("This is my First Applet",20,100);         } }
4th Jan 2017, 2:25 PM
Niloy Rashid
Niloy Rashid - avatar
0
thanx . i am a beginner and don't understand java code .i just want to know what an applet is? a webpage or browser etc ?
4th Jan 2017, 5:18 PM
Deepika Tripathi
Deepika Tripathi - avatar