Fill polygon,how to apply given color?

default color is black?
[30 byte] By [ardmorea] at [2007-11-27 9:04:30]
# 1
Graphics.setColor().Then fill the polygon as normal.This works will all lower-level drawing code. You set the color in the graphics object, and then when you draw, the drawings have that color.
paulcwa at 2007-7-12 21:37:46 > top of Java-index,Java Essentials,Java Programming...
# 2
but I will plot many polygons which are filled with different colors.
ardmorea at 2007-7-12 21:37:46 > top of Java-index,Java Essentials,Java Programming...
# 3
So, set the color.Then draw a polygon of that color.Then, set the color to something else.Then, draw the other polygon, of that color.Etc.
paulcwa at 2007-7-12 21:37:46 > top of Java-index,Java Essentials,Java Programming...