Simple Java Applets Example

An applet is a special code of Java programs. Java applets is very easy way to draw graphics related diagrams. In java applets drawing string, drawing rectangle, drawing oval, drawing fill rectangle, drawing fill oval, add buttons, add panels, add labels, add list etc. are easy to handle in java applet programs. Below java applet example will be show the first applet string with its location. That is height and width of position of the string.

Simple Applet Program in java is attached below with simple example. You need to embed html code run this applet programming in java is also included below program.

Program for applets in java with Example

Output of java applet example

Simple Java Applets Example