Size of popup menu

A

ArthurP

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
 
T

Thomas Weidenfeller

ArthurP said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top