webcam applet
843807Apr 7 2005 — edited Nov 25 2005i am new to java and am not sure what i'm doing. i'm writing an applet to display a webcam i can get the webcam to display the first frame but am not sure how to use th repaint method to show the frames as they are uploaded. below is my code so far and any help would be appreciated.
import java.awt.*;
import java.applet.*;
public class SimpleImageLoad extends Applet
{
Image img;
public void init()
{
img = getImage(getDocumentBase(),getParameter("img"));
}
public void paint(Graphics g)
{
g.drawImage(img,50,50,this);
}
}