import java.awt.*;
import javax.swing.*;
hi i just started with java 2 days ago. and i cant seem to print image on applet.
there are no errors so i am guess problem is in imageIcon path?
public class IMAGE extends JApplet
{
ImageIcon yanks;
public void init()
{
yanks = new ImageIcon("C:\\Users\\dva\\Pictures\\JAVAIMAGES\\c h1.png");
}
public void paint(Graphics g)
{
yanks.paintIcon(this, g, 100, 100);
}
}