This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: BasicMenuUI


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]