Patch: FYI: BasicMenuUI

Bryce McKinlay mckinlay@redhat.com
Fri Jul 9 23:41:00 GMT 2004


BasicMenuUI contains some illegal protected method calls that are found 
by an upcoming compiler patch. These were already fixed on the gui 
branch. For now, I am removing them from HEAD.

Regards

Bryce


2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

    * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
    illegal protected method calls.

--- BasicMenuUI.java    17 Jun 2004 23:43:13 -0000      1.5
+++ BasicMenuUI.java    9 Jul 2004 23:39:55 -0000
@@ -342,7 +342,6 @@
            {
              // If menu is visible and menu button was pressed..
              // then need to cancel the menu
-             menu.fireMenuCanceled();
              manager.clearSelectedPath();
            }
          else
@@ -351,7 +350,6 @@
              int x = 0;
              int y = menu.getHeight();
 
-             menu.fireMenuSelected();
              manager.setSelectedPath(getPath());
 
              JMenuBar mb = (JMenuBar) menu.getParent()



More information about the Java-patches mailing list