Here are some of the basic building blocks of Objected-Oriented Programming that you will become familiar with:
main) can only reference static variables in its own class (or its own local variables).
static finalvariables (constants) that can be used by all methods, or by other classes.
Color.blueis an example of a static final variable.
paintComponentmethod, you are overrid