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.
NetBeans build # 98 With german keyboard layout, an opening brace '{' is produced by typing Option-8. This key combination does not work in the NetBeans source editor, it simply has no effect. This happens with normal and Aqua look and feel. Even switching to U.S. keyboard layout does not enable me to type braces. As this makes NetBeans unusable for Java development, I assign this bug the highest priority. Typing braces works fine in other Swing-based text editors like that of Metamata 2.0. I am using a Macintosh PowerBook G3 (400 MHz) with Mac OS X 10.0.4, built-in JDK 1.3.0. The test application JEP produces the following (seemingly correct) console output when I type Opt-8: java.awt.event.KeyEvent[KEY_PRESSED,keyCode=56,keyChar='{',modifiers=Alt] on javax.swing.JEditorPane[,0,0,500x478,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@302e7a,flags=1200,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.SystemColor[i=13],disabledTextColor=java.awt.SystemColor[i=16],editable=true,margin=,selectedTextColor=java.awt.SystemColor[i=15],selectionColor=java.awt.SystemColor[i=14],kit=javax.swing.JEditorPane$PlainEditorKit@1d6096,typeHandlers=] java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyChar='{',modifiers=Alt] on javax.swing.JEditorPane[,0,0,500x478,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@302e7a,flags=1200,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.SystemColor[i=13],disabledTextColor=java.awt.SystemColor[i=16],editable=true,margin=,selectedTextColor=java.awt.SystemColor[i=15],selectionColor=java.awt.SystemColor[i=14],kit=javax.swing.JEditorPane$PlainEditorKit@1d6096,typeHandlers=] java.awt.event.KeyEvent[KEY_RELEASED,keyCode=56,keyChar='{',modifiers=Alt] on javax.swing.JEditorPane[,0,0,500x478,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@302e7a,flags=1200,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.SystemColor[i=13],disabledTextColor=java.awt.SystemColor[i=16],editable=true,margin=,selectedTextColor=java.awt.SystemColor[i=15],selectionColor=java.awt.SystemColor[i=14],kit=javax.swing.JEditorPane$PlainEditorKit@1d6096,typeHandlers=]
So, this is another bug regarding the keyboard (there are quite strong filters as workarounds for different JDKs). I think that events you grabbed are not correct (there is "Alt" modifier, which maybe should not be here, I don't know). For this time (till this bug will be fixed), you can define macros for '{' and '}' (under english keyboard) and map them to Alt-{ and Alt-} (under german keyboard). Than it should work for you as in other editors. I could create the macros for you (or provide more specific list of steps), but final mapping will have to be done on your instalation.
And, sorry, but there exist workaround (it is not trivial to do, but when you will, it will be transparent for you), so I think this bug should not have P1 priority (but I hope it will be fixed soon).
*** This issue has been marked as a duplicate of 11477 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.