Hello, I'm new, here!
I'm learning to code my first game.
I need to figure how to paint a simple image in the game loop.
As now, I did this but I cannot see anything.
I have another class wich is a Jframe that sets the content of the following
I think the problem was just in the other class. Silly me.
Now I'm moving to the keylistener.
Thanks for the link.
One thing I did was moving the load method in the init clas. I suppose it's better because it only calls images once and the leave the repaint in the run method.
In future, using a game library would probably be beneficial as you don't run into low-level problems like this. I am using LibGDX and am finding it much easier to code games in than the built-in java libs.