import java.awt.*; import java.awt.event.*; import java.applet.*; import oracle.jdeveloper.layout.*; public class MyImages extends Applet { XYLayout xYLayout1 = new XYLayout(); boolean isStandalone = false; //Construct the applet public MyImages() { } //Initialize the applet Image myImage; public void init() { try { jbInit(); } catch (Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { xYLayout1.setWidth(400); xYLayout1.setHeight(300); this.setLayout(xYLayout1); this.setBackground(SystemColor.control); myImage=getImage(getDocumentBase(),getParameter("img")); } public void paint(Graphics g) { g.drawImage(myImage,50,50,this);} //Get Applet information public String getAppletInfo() { return "Applet Information"; } //Get parameter info public String[][] getParameterInfo() { return null; } }