On Sun, Jul 25, 2010 at 12:55 PM, Ryan Twitchell <[email protected]> wrote: > You'd be best served overriding the JPanel's paint or paintComponent > method (I'm fuzzy on the difference), and then calling repaint > periodically (at your desired frame rate). IIRC, repaint is safe to > call from any thread, and it will cause the paint methods to be called > in the swing thread. Also, try to ensure your swing setup code runs > in the swing thread if possible (see Brian's reply).
Unless you have a good reason, you should not override paint, http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/painting/closer.html -- Nurullah Akkaya http://nakkaya.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
