Draw Image

2 comments - Post a comment

/* 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>

 
This Post has 2 Comments Add your own!
siva477 - August 20, 2010 at 2:45 PM

where is the super class?

siva477 - August 20, 2010 at 2:47 PM

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.

Post a Comment