import java.awt.*; import java.awt.event.*; import java.applet.*; import oracle.jdeveloper.layout.*; public class ImagesApp extends Applet { XYLayout xYLayout1 = new XYLayout(); boolean isStandalone = false; //Construct the applet public ImagesApp() { } //Initialize the applet public void init() { try { image = this.getParameter("img", "hlpglobe.gif"); } catch (Exception e) { e.printStackTrace(); } try { jbInit(); } catch (Exception e) { e.printStackTrace(); } } //Component initialization Image img1; private void jbInit() throws Exception { xYLayout1.setWidth(400); xYLayout1.setHeight(300); this.setLayout(xYLayout1); this.setBackground(Color.white); // img1=getImage(getDocumentBase(),getParameter("img")); img1=getImage(getDocumentBase(),getParameter("img")); System.out.println(getCodeBase()+" - "+ getParameter("img")); } public void paint(Graphics g) { g.drawImage(img1,10,10,this); } //Get Applet information public String getAppletInfo() { return "Applet Information"; } //Get parameter info public String[][] getParameterInfo() { return null; } }