Is it possible to get the size of a popup menu in AWT.
I have a panel that contains an image. It appears that when the pop up
menu is closed the unerlying panel is painted. This causes flashing.
If I know the size of the popup menu I could just refresh the
underlying area of the popup menu when the paint is called.
Regards
Arthur
Thomas Weidenfeller - 20 Feb 2006 08:57 GMT
> I have a panel that contains an image. It appears that when the pop up
> menu is closed the unerlying panel is painted. This causes flashing.
> If I know the size of the popup menu I could just refresh the
> underlying area of the popup menu when the paint is called.
Examine the clipping region of the Graphics context you get in your
image paint[Component]() method. It should be set so you can determine
which parts need repainting.
/Thomas