import java.applet.*; import java.awt.*; import java.net.*; public class SimpleImage extends Applet { private Image art; public void init () { try { art = this.getImage (getCodeBase(), "graphics/TheHaywain.jpg"); } catch (MalformedURLException err) { String errorMsg = this.getAppletInfo() + " : " + err; showStatus (errorMsg); repaint(); } } public void paint (Graphics g) { g.fillRect (0,0,57,62); g.drawImage (art,2,2,this); g.drawString ("The", 17, 25); g.drawString ("Haywain", 12, 45); } }