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.
[nb_dev](211),[jdk1.3.1](rc1) Steps to reproduce: - open Jframe, add JPopupMenu, add JMenuItem - try to set mnemonic, type "10" -> ok , value of property is changed to '\n' - try to type 'k' -> new value is java.lang.ClassCastException After invoke property editor you obtain ClassCastException (attachment)
Created attachment 1598 [details] First exception write only to ide.log next set value 'd'
Created attachment 1599 [details] Exception after invoke Property editor
*** Issue 12973 has been marked as a duplicate of this issue. ***
Now MnemonicEditor distinguishes between Integer and Character value because of new PropertySheet. modified files: MnemonicEditor.java, new revision 1.2 ::: fixed in dev only
Sorry for confusing: 1. OS and platform were changed by mistake 2. resolution "FIXED" is missing
Now fields are correct.
verified in [nb_dev](20010619)
Created attachment 1632 [details] NullPointerException
NullPointerException: - open frame, set mnemonic (for JMenuItem) - type 'h' - close, reopen -> NPE - during opening (attachment) -> mnemonic value is empty NumberFormatException: - open frame, set mnemonic ( for JMenuItem) - change editor type to IntEditor - try to type 'k' -> NumberFormatException (attachment) Form didn't remember used editor type: - open frame, set mnemonic (for JMenuItem) - change editor to IntEditor - type 100 - save, reopen -> source code is right , but value of mnemonic is 'd' and selected editor is MnemonicEditor
Created attachment 1634 [details] NumberFormatException
NPE was caused by absence of converting char value to int. modified files: MnemonicEditor.java, new revision 1.3 NullPointerException: fixed NumberFormatException: not matter of MnemonicEditor, EXC goes to ide.log only Form didn't remember used editor type: it's OK, editors for primitive types are not written in form file ::: fixed in dev only
verified in [nb_dev](20010620)
Resolved for 3.3.x or earlier, no new info since then -> closing.