This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221618 - ClassCastException: javax.swing.JPanel cannot be cast to org.netbeans.modules.options.keymap.KeymapPanel
Summary: ClassCastException: javax.swing.JPanel cannot be cast to org.netbeans.modules...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-11-07 11:23 UTC by Alexander Simon
Modified: 2012-11-08 02:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194677


Attachments
stacktrace (3.19 KB, text/plain)
2012-11-07 11:23 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-11-07 11:23:47 UTC
Build: NetBeans IDE Dev (Build 20121107-a1ee4c918c7b)
VM: Java HotSpot(TM) Client VM, 20.8-b03, Java(TM) SE Runtime Environment, 1.6.0_33-b03
OS: SunOS

User Comments:
fvogler: Open Options -> Keymap
Search "Ana"
Double click on shortcut-cell of "Analyze Stack"
Hit <ctrl>




Stacktrace: 
java.lang.ClassCastException: javax.swing.JPanel cannot be cast to org.netbeans.modules.options.keymap.KeymapPanel
   at org.netbeans.modules.options.keymap.ShortcutTextField.getAllFreeShortcuts(ShortcutTextField.java:232)
   at org.netbeans.modules.options.keymap.ShortcutTextField.getFreeShortcuts(ShortcutTextField.java:217)
   at org.netbeans.modules.options.keymap.ShortcutTextField.access$300(ShortcutTextField.java:71)
   at org.netbeans.modules.options.keymap.ShortcutTextField$ShortcutCompletionListener.keyPressed(ShortcutTextField.java:154)
   at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:233)
   at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:232)
Comment 1 Alexander Simon 2012-11-07 11:23:49 UTC
Created attachment 127288 [details]
stacktrace
Comment 2 Alexander Simon 2012-11-07 11:40:01 UTC
Impossible to change shortcut
Comment 3 Theofanis Oikonomou 2012-11-07 12:05:47 UTC
I guess related to changes in bug 220246? re-assigning
Comment 4 Svata Dedic 2012-11-07 12:24:43 UTC
Apologies, I inserted a container and the code looks at fixed place in the container hierarchy.
Comment 5 Svata Dedic 2012-11-07 12:26:32 UTC
Changeset: 532c490a128d
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-11-07 13:26
Message:   Less error-prone way to find KeymapPanel
Comment 6 Quality Engineering 2012-11-08 02:49:14 UTC
Integrated into 'main-golden', will be available in build *201211080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/532c490a128d
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #221618 - ClassCastException: javax.swing.JPanel cannot be cast to org.netbeans.modules.options.keymap.KeymapPanel: fixed
Less error-prone way to find KeymapPanel