You only have to write the definitions for the three classes:
Everything else is either a class in the AWT that you are using as a base class, or an object that is instantiated at run-time.
Here is the picture (again):
Mentally color all the boxes: