Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Popupmenu & JComboBox shows up behind JInternalFrame on glasspane

843806Jun 26 2009 — edited Jul 1 2009
Till Java 6 update 12 we used setLightWeightPopupEnabled on the popupmenus and JComboBoxes to make them appear on the toplevel when showing the glasspane. The situation is as followed:

- A Swing application
- Over the Swing application is a glasspane (extends JPanel)
- Added on the glasspane is a JInternalFrame (with on it components like a JPanel)
- When clicking with right mouse button, a popupmenu shows up. When using setLightWeightPopupEnabled it works perfectly

But when Java 6 update 12 was released, the popupmenu and JComboBox popup are shown behind the JInternalFrame (but above the glasspane).

SUN made some adjustments in the system. Does anyone knows how I can solve the problem as described above?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2009
Added on Jun 26 2009
8 comments
557 views