/* Java Program To Draw Image on the applet. Done using Applets. */
import java.awt.*;
import java.applet.*;
public class AppletImage extends Applet
{
Image img;
public void init()
{
String imagename= getParameter("Whilder e Pool");
img = getImage(getCodeBase(),imagename);
}
public void paint(Graphics c)
{
c.drawImage(img,10,10,this);
}
}
//< applet code = AppletImage width = 770 Height = 555>
//< param name = "Whilder e pool " value = "madonnablue6bp.gif">
//< /applet>
Subscribe to:
Post Comments (Atom)
where is the super class?
in every program there is an error , because of using args in main method. how we are using args parameters without declare it?... please send response to my mail id.