Draw Rectangle in Applet – Java Example

Applet

This Java example shows how to draw a rectangle in Applet.

Graphics class in java.awt package provides various methods to draw different shapes like rectangle, line, polygon, oval, arc, etc.

Applet is a Java program that can be embedded into a web page. It runs inside the web browser and works at client side.

Share This Post On: