Z
Zhao
Hi,
I made a Java program that I want to insert a .gif into my frame
window. It can be shown through appletviewer in the local machine, but
it can't be displayed from index.html.
insert into a frame window:
class frame1 extends Frame
{
Image picture = getToolkit().getImage("pic.gif");//pic.gif is on
current directory
public void paint (Graphics page)
{
page.drawImage (picture, 50, 100,200,50, this);
}//method paint()
}
Another applet class that can invoke the frame1 is embeded in a
index.html. When run the index.html, the picture is not displayed. Can
anybody tell me how to get the picture from index.html?
Thanks.
zhao
I made a Java program that I want to insert a .gif into my frame
window. It can be shown through appletviewer in the local machine, but
it can't be displayed from index.html.
insert into a frame window:
class frame1 extends Frame
{
Image picture = getToolkit().getImage("pic.gif");//pic.gif is on
current directory
public void paint (Graphics page)
{
page.drawImage (picture, 50, 100,200,50, this);
}//method paint()
}
Another applet class that can invoke the frame1 is embeded in a
index.html. When run the index.html, the picture is not displayed. Can
anybody tell me how to get the picture from index.html?
Thanks.
zhao