-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
tiger
-
x86
-
windows_xp
NPE is thrown when mouse is takem over the menu.
Steps to reproduce:
---------------------
1) Run SwingSet2
2) Change the LAF to windows
3)Take mouse over the File menu DO NOT CLICK
4) Now press the right arraow key to go to 'Look & Feel' menu
It wil throw NPE
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicDesktopPaneUI$Actions.actionPerformed(BasicDesktopPane
UI.java:289)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1540)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2449)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2495)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2412)
at java.awt.Component.processEvent(Component.java:4911)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3617)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3479)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:627)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:831)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:741)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:592)
at java.awt.Component.dispatchEventImpl(Component.java:3508)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3479)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:208)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:143)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:104)
This is observed in Tiger b07.
Steps to reproduce:
---------------------
1) Run SwingSet2
2) Change the LAF to windows
3)Take mouse over the File menu DO NOT CLICK
4) Now press the right arraow key to go to 'Look & Feel' menu
It wil throw NPE
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicDesktopPaneUI$Actions.actionPerformed(BasicDesktopPane
UI.java:289)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1540)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2449)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2495)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2412)
at java.awt.Component.processEvent(Component.java:4911)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3617)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3479)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:627)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:831)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:741)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:592)
at java.awt.Component.dispatchEventImpl(Component.java:3508)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3479)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:208)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:143)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:104)
This is observed in Tiger b07.
- relates to
-
JDK-4875246 Win L&F: JMenu rollover effect in Windows not working properly in win LAF
- Resolved