You can copy/paste the last snippet from,
http://nakkaya.com/2010/07/21/physics-with-clojure/
which uses the former method for painting on a JPanel.
Hope this helps...
--
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 clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Google for "double buffering".
Isak
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