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: QTJ with swing (was Re: Is it just me?)



T. Colin Mack wrote:

> I saw that my pull down menus did get lost "behind" the QTCanvas as
> advertised. This makes me think that mixing swing and QTJava might
> be a problem for apps that need to work on Windows as well.
>
> Anyone have any suggestions for how to deal with the swing interface
> component vs QTCanvas issue for apps that will run on windows as
> well?

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);

Likewise with a JMenu:

JMenu aMenu = new JMenu ("File");
aMenu.getPopupMenu().setLightWeightPopupEnabled (false);

You can also do something similar with tool tips that happen to overlap the QTCanvas:

ToolTipManager.sharedInstance().setLightWeightPopupEnabled (false);

However, in this last case, it's global in that all tool tips will be heavy-weights.

Hope that helps.
--
;;;;joseph.

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


References: 
 >Re: QTJ with swing (was Re: Is it just me?) (From: "T. Colin Mack" <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.