repaint loop « Graphics « Java Swing Q&A





1. repaint in a loop    stackoverflow.com

I am writing a game using Java Swing. I want to paint each time a loop executes with a small delay in between to create a cascade effect on screen. I ...

2. repaint components in a loop    stackoverflow.com

I'm creating a simple game and I'd like to repaint the board after every move. So, after I call move(), what I would like to do is this: (by the ...

3. Java Application : repaint isn't executed in While Loop?    stackoverflow.com

I've got this Thread that is supposed to Update the game's elements, i.e. repaint, wait for a bit of time then do it again, the problem is that it doesn't repaint. ...

4. repaint() in loop problem    coderanch.com

I'm writing a Swing application that needs to be able to repaint() rectangular regions on a JPanel many times in a loop. Because repaint() only calls the component's paint() or update() method "as soon as possible," the repaint() does not work reliably in a loop. I tried to put a Thread.sleep() before repaint(), but it still does not always work. Sometimes ...

5. how to pause and repaint in a loop, to draw a mathematical function.    java-forums.org

Hello First of all, Forgive my english... I would like to make a program in which you give : _ a function (for exemple x^2) _ min and max _ a number of "iterations" (I'm not sure it's the correct word in english, but nevermind) and then, the program shows the graph of that function, along with a "rain" of dots, ...

6. GUI repaint / loop problem    forums.oracle.com