Original Post
I have filtered my code many hours, but I can''t find the problem, This one is really basic so I hope you can find error what I can''t:
This one is from engineController object, this is just simple test, because after I messed my code just before taking backups, I tried to make it very simple to find error..
...snip...
part of engineController
class EngineCanvas extends Canvas
{
Image Background;
public void paint(Graphics g)
{
Tausta = getToolkit().getImage("dildo2.gif");
MediaTracker mt = new MediaTracker (this);
mt.addImage (Background, 0);
try {
mt.waitForAll();
System.out.println("Image is loaded");
} catch (Exception e) { e.printStackTrace(); }
g.drawImage(Background, 0, 0, this);
}
}
heheh dildo2.gif is picture from my PC, I named it dildo because it looked... I''m not going to continue
I''m calling engine canvas in my main object which tests the game.
Here is how i load my canvas
Canvas GoDView = new EngineCanvas();
It lies in borderlayout center, Jim told me that I should use setSize/setBounds, tried with it, negative