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 199719

Summary: Generate Mnemonics Code generates not compilable
Product: guibuilder Reporter: asenk
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: normal CC: MackSix
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description asenk 2011-06-27 08:37:06 UTC
Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b16
System: Linux version 2.6.38-8-generic running on i386; UTF-8; en_US (nb)

Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new JFrame. 

    1.place some JLabel into Form
    2.Select root node in Inspector
    3.Check property "Generate Mnemonics Code" on Property Sheet 
    4.Compile file

Output:/home/tester/NetBeansProjects/JavaApplication3/src/javaapplication3/NewJFrame.java:45: error: package org.openide.awt does not exist
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, "jLabel1");
Comment 1 Tomas Pavek 2012-05-18 12:33:10 UTC
This was changed some time ago, the "Generate Mnemonics Code" option is now disabled if the Mnemonics class (org.openide.awt library) is not available on project classpath.
Comment 2 asenk 2012-08-23 10:50:22 UTC
v.

Product Version: NetBeans IDE Dev (Build 201208220001)
Java: 1.6.0_31; Java HotSpot(TM) Client VM 20.6-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)