Original Post
my code has no errors but it still is not running right please help me, I dont know what I did wrong. //import necessary packages import java.applet.*; import java.awt.*; import java.awt.image.*; @SuppressWarnings("serial") public class ReApp extends Applet implements Runnable{ private int x=500,y=500; private int guy_x=WIDTH,guy_y=HEIGHT; BufferedImage bfimg; Image sprite1 = getImage(getCodeBase(),getParameter("sprit1.jpg")); public void init() { this.setSize(x, y); } public void start() { Thread th = new Thread (this); th.start (); } public void stop() { } public void destroy() { } public void draw(Graphics g,int guy_x,int guy_y) { g.drawImage(sprite1,guy_x,guy_y,null); } public void paint (Graphics g) { } @Override public void run() { // whatever i need to do Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while (true){ repaint(); try { Thread.sleep (20); } catch (InterruptedException ex) { // nothing so far } Thread.currentThread().setPriority(Thread.MAX_PRIORITY); } } /** * @param guy_x the guy_x to set */ public void setGuy_x(int guy_x) { this.guy_x = guy_x; } /** * @return the guy_x */ public int getGuy_x() { return guy_x; } /** * @param guy_y the guy_y to set */ public void setGuy_y(int guy_y) { this.guy_y = guy_y; } /** * @return the guy_y */ public int getGuy_y() { return guy_y; } } I appreciate any help that I get.