Tweet
import java.awt.*;
import java.applet.*;
/*
* <applet code="image" width=300 height=150
* <param name="img" value="cover.jpeg">
* </applet>
*/
public class image extends Applet
{
Image img;
public void init()
{
img=getImage(getDocumentBase(),getParameter("img"));
}
public void paint(Graphics g)
{
g.drawImage(img,10,20,this);
}
}
Loading an Image with Java Applet
Posted by
LAHAUL SETH
~
Loading an Image with Java Applet
2012-01-23T18:51:00+05:30
LAHAUL SETH
Java
|
Java Applet
|
Comments
Loading an Image with Java Applet
2012-01-23T18:51:00+05:30
LAHAUL SETH
Java
|
Java Applet
|