Import Import Public Class Extends: / Java Program To Create and Fill Shapes Using Applet
This Java program uses an applet to draw and fill different shapes. The shapes include a square, pentagon, circle, oval, rectangle, and triangle. For each shape, the program draws the outline in black and then fills the interior in yellow. The applet initializes with a white background and uses the paint method to draw the shapes by specifying coordinates for polygons or ovals.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
93 views
Import Import Public Class Extends: / Java Program To Create and Fill Shapes Using Applet
This Java program uses an applet to draw and fill different shapes. The shapes include a square, pentagon, circle, oval, rectangle, and triangle. For each shape, the program draws the outline in black and then fills the interior in yellow. The applet initializes with a white background and uses the paint method to draw the shapes by specifying coordinates for polygons or ovals.