WE'VE SEEN many ways to do shapes in Java ... access to each element through indexing using the square ... drawing color for the fill. Shapes and fills. Shapes and fills. This java example shows how to draw rectangles and squares in an applet window using drawRect method of Graphics class. HTML by Alphabet HTML by Category HTML Attributes HTML Global Attributes HTML Events HTML Colors HTML Canvas HTML ...