Do you know what it means to override an extended class's method?
You define your own version of the method with the same signature as the one you want to override.
Use the @Override annotation just before the definition to have the compiler tell you if you have correctly overridden the method.
Your draw method needs the Graphics object passed to the paintComponent method. That is what provides the GUI context where the drawing will be done.