Hi Pavan,
what probably happens is that you're trying to display
an image which is not fully loaded at that time. Try
to modify your code to use MediaTracker class.
Here is an example:
import java.awt.*;
import java.awt.image.*;
public class Test extends Frame {
Image image;
Hi guys,
I want to display an image within a frame. this is how i
am trying to do it.
import java.awt.*;
public class ImageDemo extends Frame
{
MyCanvas canvas;
Image image = null;
public ImageDemo()
{
image =
getParent().getToolkit().getImage("Software.jpg");