Create an applet program to display your brief profile with photograph . Make necessary assumption and use appropriate GUI and layout in your program
Answers
Answered by
1
"In order to create an applet, you can use the Java programming language. You can follow the code as given below to understand the concept,
import java.applet.*;
import java.awt.*;
public class ImageGrpcsEx extends Applet
{
Image pic;
public void init()
{
pic =getImage(getDocumentBase(),""images.jpeg"");
}
public void paint(Graphics grp)
{
grp.drawImage(pic, 100,30,this);
}
}
/*
<applet code=""ImageGrpcsEx.class"" width=""400"" height=""400"">
</applet
*/
"
Similar questions