The method getCodebase() is part of the Applet class, if your CloseShooter1 class doesn't extends Applet, it hasn't the method.From the Java1.4 API the method getImage(URL,String) that you are calling is also part of Applet.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org