Re: simple question



On 9 Nov 2005 11:01:08 -0800, "ChooChooOnMyHead"
<twocentwhoracle@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

>I was just wondering if there was a way to paint in a MouseDown
>handler. In class we only learned about the paint method, but is
>there a way to draw a new shape on each click without calling a
>repaint?

What you would normally do in use a repaint with a clipregion to cause
just the changed portion to repaint. However, it is possible to use
paintImmediately which is like a repaint, but that gives you top
priority. In both cases paint or paintComponent does the actual
painting.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages