JDK-5059744 : [App]Press Ctl+Space, there is exception thrown in jgraphpad
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,linux,solaris_10
  • CPU: generic,x86
  • Submitted: 2004-06-08
  • Updated: 2004-10-25
  • Resolved: 2004-09-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u1 betaFixed 6Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
Reproduce Steps:
1. On Cinnabar11 for Solaris (X86 and sparc), mozilla1.7(2004/05/31), english locale.
2. Running jgraphpad on terminal. Then, select text and press Ctrl + Space button. At this time, an exception was thrown:
bash-2.05b$ jgraphpad
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicInternalFrameTitlePane.showSystemMenu(Bas icInternalFrameTitlePane.java:279)
        at javax.swing.plaf.basic.BasicInternalFrameUI$1.actionPerformed(BasicIn ternalFrameUI.java:148)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
        at javax.swing.JComponent.processKeyBinding(JComponent.java:2726)
        at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
        at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:2 04)
        at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent. java:2803)
        at javax.swing.JComponent.processKeyBindings(JComponent.java:2795)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2689)
        at java.awt.Component.processEvent(Component.java:5242)
        at java.awt.Container.processEvent(Container.java:1961)
        at java.awt.Component.dispatchEventImpl(Component.java:3933)
        at java.awt.Container.dispatchEventImpl(Container.java:2019)
        at java.awt.Component.dispatchEvent(Component.java:3781)
        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja va:1810)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard FocusManager.java:668)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo ardFocusManager.java:916)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo ardFocusManager.java:794)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc usManager.java:632)
        at java.awt.Component.dispatchEventImpl(Component.java:3819)
        at java.awt.Container.dispatchEventImpl(Container.java:2019)
        at java.awt.Window.dispatchEventImpl(Window.java:1764)
        at java.awt.Component.dispatchEvent(Component.java:3781)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
3. On Jedit, when I press Ctrl+Space, there is no such exception was thrown.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.5.0_01 mustang FIXED IN: 1.5.0_01 mustang INTEGRATED IN: 1.5.0_01 mustang
28-09-2004

EVALUATION Name: osR10079 Date: 06/08/2004 The exception occurs somewhere in Swing. So reassign to the Swing team for initial investigation. ###@###.### 2004-06-08 ====================================================================== Name: sh120115 Date: 06/08/2004 This error is specific to the GTK L&F. Although the GTK L&F binds CTRL-space to show the system menu, it seems that it never initializes the windowMenu variable that is called upon in BasicInternalFrameTitlePane.showSystemMenu(). ###@###.### 2004-06-08 ====================================================================== windowMenu isn't used by synth because it's a menu. Instead we use a popup in synth which is what we really wanted in the first place for all the plafs. Anyway, we didn't override showSystemMenu in SynthInternalFrameTitlePane so instead we get basic's implementation which references windowMenu. The fix is pretty straight forward, override showSystemMenu in synth to do the right thing. ###@###.### 2004-06-14 The bug still reproduce on Cinnabar13/Sparc with j2sdk1.5.0-beta3-b56 ###@###.### 2004-07-06 Duplicate bug, 5046610, mentions the same problem with SHIFT-ESCAPE. ###@###.### 2004-07-09 I have verified the bug on Cinnabar20(X86&Sparc). In English local, when pressing "Ctrl+Space" there is a menu comes up and no exception. But I think when user press "Ctrl+Space", generally they want to switch input method instead of something like popup menu.Is it a new feature? ###@###.### 10/14/04 08:10 GMT
14-10-0004