I committed the attached fix for BasicInternalFrameUI, which makes it possible to activate menus in JInternalFrames. This was previously impossible because the GlassPaneDispatcher only searched in the frame's content pane for possible event targets, but the menu bar of a rootpane is not inside the contentPane. Instead the searching must be started in the rootpane's layeredPane.
2005-11-08 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicInternalFrameUI.java (GlassPaneDispatcher.acquireComponentForMouseEvent): Use the frame's layeredPane as parent instead of the content pane when searching for the event target. This way a possibly set menubar is also included in the search. /Roman
Index: javax/swing/plaf/basic/BasicInternalFrameUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java,v retrieving revision 1.22 diff -u -r1.22 BasicInternalFrameUI.java --- javax/swing/plaf/basic/BasicInternalFrameUI.java 18 Oct 2005 22:10:32 -0000 1.22 +++ javax/swing/plaf/basic/BasicInternalFrameUI.java 8 Nov 2005 21:12:58 -0000 @@ -751,7 +751,7 @@ int y = me.getY(); // Find the candidate which should receive this event. - Component parent = frame.getContentPane(); + Component parent = frame.getLayeredPane(); if (parent == null) return; Component candidate = null;
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches