diff options
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/javax/swing/plaf/basic/BasicMenuUI.java | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7b63645a81d..b6e4c8bb5d5 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-05-31 Olga Rodimina <rodimina@redhat.com> + + * javax/swing/plaf/basic/BasicMenuUI.java: + (MouseEntered): Do not call getPath() from MenuSelectionManager. + Call getPath() from super class instead. + 2004-05-31 Michael Koch <konqueror@gmx.de> * java/io/SequenceInputStream.java: diff --git a/libjava/javax/swing/plaf/basic/BasicMenuUI.java b/libjava/javax/swing/plaf/basic/BasicMenuUI.java index 406934e3adc..62d06982fec 100644 --- a/libjava/javax/swing/plaf/basic/BasicMenuUI.java +++ b/libjava/javax/swing/plaf/basic/BasicMenuUI.java @@ -74,7 +74,7 @@ import javax.swing.plaf.MenuItemUI; * DOCUMENT ME! * * @author $author$ - * @version $Revision: 1.1.2.3 $ + * @version $Revision: 1.2 $ */ public class BasicMenuUI extends BasicMenuItemUI { @@ -275,7 +275,7 @@ public class BasicMenuUI extends BasicMenuItemUI * DOCUMENT ME! * * @author $author$ - * @version $Revision: 1.1.2.3 $ + * @version $Revision: 1.2 $ */ protected class MouseInputHandler implements MouseInputListener { @@ -296,7 +296,7 @@ public class BasicMenuUI extends BasicMenuItemUI public void mouseEntered(MouseEvent e) { MenuSelectionManager manager = MenuSelectionManager.defaultManager(); - manager.setSelectedPath(manager.getPath((Component) e.getSource())); + manager.setSelectedPath(getPath()); manager.processMouseEvent(e); JMenu subMenu = (JMenu) menuItem; |