Java commands can draw both hollow and filled basic shapes like lines, ovals, polygons, and rectangles. They can also display strings and load images. Specific commands include drawLine(), drawOval(), drawPolygon(), drawRect(), drawString(), fillArc(), fillOval(), fillPolygon(), fillRect(), and setColour() for setting the drawing color. Images can be loaded using getImage() and drawn on the canvas with drawImage().
Download as PPSX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views
Java Applet
Java commands can draw both hollow and filled basic shapes like lines, ovals, polygons, and rectangles. They can also display strings and load images. Specific commands include drawLine(), drawOval(), drawPolygon(), drawRect(), drawString(), fillArc(), fillOval(), fillPolygon(), fillRect(), and setColour() for setting the drawing color. Images can be loaded using getImage() and drawn on the canvas with drawImage().