Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTCanvas



> I need to place a swing component over the QTCanvas which already in
> turn has a image.


I've had success with placing a JPopupMenu over the QTCanvas. But, in that case, the popup must be configured to be a heavy-weight. You do that by:

popup.setLightWeightPopupEnabled (false);

You can do a similar thing with tool tips via the ToolTipManager.

What is really going on underneath is that a JWindow is allocated as the base container for the menu items or tool tip text. JWindow is essentially a box with no window-dressing.

So, you might be able to create your own JWindow, stick your image into it, etc., but I don't know if it would really solve your problem. Or, maybe you could make a tool tip that contains just your image, and tell the ToolTipManager to set the tool tip to be a heavyweight. Mind you, it's a hacky use for a tool tip...

--
;;;;joseph.

'Nothing to kill or die for...'
- J. W. O. Lennon -


References: 
 >QTCanvas (From: Valarmathy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.