How to use image panel class,here it is showing error:image panel cannot be resolved to a type! How to create an image panel class object
public void start()
{
ImagePanel im=new ImagePanel("C:/om1.jpg");//ERROR:image panel cannot be resolved to a type
add(im);
setSize(400,400);
setVisible(true);
addMouseListener(this);
addMouseMotionListener( this );
setDefaultCloseOperation(EXIT_ON_CLOSE);
}
Aucun commentaire:
Enregistrer un commentaire