Professional Documents
Culture Documents
Theory:
1. Applet is a special type of program that is embedded in the webpage to generate the
dynamic content. It runs inside the browser and works at client side.
2. public void paint(Graphics g): is used to paint the Applet. It provides Graphics class
object that can be used for drawing oval, rectangle, arc etc
3. Syntax of Commonly used and implemented methods
Department of Artificial Intelligence & Data Science
Subject: Object Oriented Programming with Java
Experiment No. 13
Implementation:
1. Program
2. Output
Department of Artificial Intelligence & Data Science
Subject: Object Oriented Programming with Java
Experiment No. 13
Conclusion: Graphics class provides many methods to draw or fill different shapes, some of
those are drawString(), drawRect(), drawArc(), drawLine(), fillRect(), fillArc(), etc.