I'm trying to make a Pong game for java however I'm trying to insert an image of a ball into this code:
public Ball() {
super();
ball = getImage("ballimage.gif");
Ball = new Thread(this);
Ball.start();
}
However this isn't working, my image is in my Source Packages folder along with the main class and other class, however it won't appear. How could I get an image of a ball in that code so that it will move?
Sorry if this is a silly question but Im really new to java!
Thanks Alot

New Topic/Question
Reply




MultiQuote








|