Everytime we solve a problem, another one comes up XD. Now, this line of code is underlined in red:
surface = super.initSurface();
And the error message,
Type mismatch, “processing.core.PSurface” does not match with "processing.javafx.PSurfaceFX"