Popupmenu & JComboBox shows up behind JInternalFrame on glasspane
843806Jun 26 2009 — edited Jul 1 2009Till 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?