Thread.sleep(1000 / FRAMES_PER_SECOND);
SCJP
Visit my download page
luck, db
There are no new questions, but there may be new answers.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Ivan Slavka wrote:So I should use javax.swing.Timer even though I have only JPanel from Swing package, the rest of graphics is awt?
Then is this response (StackOverflow) to the question incorrect?
And about the paint() method. This article Oracle
says to use paint with awt and paintComponent with Swing. And I'm using awt to draw the shapes.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Consider Paul's rocket mass heater. |