Re: Self-changing font...
- From: "Rob McDonald" <robm@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 11:16:19 -0500
You may also comment repaint() call from componentResized (calls repaint
or update anyway after resizing).
I think better way is to use paintComponent combined with your #2 fix
Thanks for the tips.
paintComponent() is certainly helping.
In the real program, some of the calculations I do on a resize are
moderately expensive. I don't want to do them every repaint. Thats why I
put them in componentResized(). If there is a better place for this sort of
thing, I'm all ears...
I guess what you're saying is that the repaint() call in the
componentResized is redundant. I can leave the size calculations there, but
I don't need the repaint()....
You're also suggesting I ditch the size calculations in that routine, but
that isn't something I want to do.
Rob
.
- Follow-Ups:
- Re: Self-changing font...
- From: Rob McDonald
- Re: Self-changing font...
- References:
- Self-changing font...
- From: Rob McDonald
- Re: Self-changing font...
- From: Vova Reznik
- Self-changing font...
- Prev by Date: Re: Self-changing font...
- Next by Date: Re: Self-changing font...
- Previous by thread: Re: Self-changing font...
- Next by thread: Re: Self-changing font...
- Index(es):
Relevant Pages
|