JFrame blinks during som repaintings :/
Im making a 2d game by using only 1 class
and it extends JFrame and implements runnable
So it got this paint method.
That should paint the objects I want.
But sometimes it blinks!
The screen becomes blank for just a tiny nano second.
I decreased the frequency of this by calling
Graphics g = this.getGraphics();
before calling repaint on my instance.
This helps and I think it's some sort of focus problem maybe?
Idk I really need help with this.
And I can't post the code here, as some other people in my javaclass
will moste certainly steal it then :/