Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6603771

Nimbus L&F: Ctrl+F7 keybinding for Jinternal Frame throws a NPE.

    Details

      Description

      Keybindings Ctrl+ F7 for a JInternalFrame, allows it to be moved. With the current 6u5b04 pit build this throws up a NPE. This is seen on all OS with Nimbus L&F.
      Steps to reproduce:
      1)Run SwingSet2 demo with 6u5b04 pit build. Click to get focus on any of the Internal Frames in the Internanl Frame demo and press Ctrl +F7.
      2)Press any of the left/right/up/down arrow keys.
      Expected behavior: The Internal Frame moves as per the key pressed.
      Actual behavior: NPE occurs.
      Follwoing ths the stack trace:
      ---------------Stack Trace----------------------
      ------------------------------------------------

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at javax.swing.plaf.basic.BasicDesktopPaneUI$Actions.actionPerformed(BasicDesktopPaneUI.java:399)
              at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
              at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
              at javax.swing.JComponent.processKeyBindings(JComponent.java:2895)
              at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
              at java.awt.Component.processEvent(Component.java:5877)
              at java.awt.Container.processEvent(Container.java:2058)
              at java.awt.Component.dispatchEventImpl(Component.java:4472)
              at java.awt.Container.dispatchEventImpl(Container.java:2116)
              at java.awt.Component.dispatchEvent(Component.java:4302)
              at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
              at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
              at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
              at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
              at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
              at java.awt.Component.dispatchEventImpl(Component.java:4344)
              at java.awt.Container.dispatchEventImpl(Container.java:2116)
              at java.awt.Window.dispatchEventImpl(Window.java:2440)
              at java.awt.Component.dispatchEvent(Component.java:4302)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
      ---------------Stack Trace----------------------
      ------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smandalisunw Srinivas Mandalika (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: