Re: simple question
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Thu, 10 Nov 2005 00:55:58 GMT
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.
.
- References:
- simple question
- From: ChooChooOnMyHead
- simple question
- Prev by Date: Re: Overriding keyboard events in Swing components
- Next by Date: Re: Who's painting my components
- Previous by thread: Re: simple question
- Next by thread: Re: simple question
- Index(es):
Relevant Pages
|