I started a new project in NetBeans and ran into an infuriating
problem. When adding a component that uses the setText() method,
NetBeans puts in automatically generated code producing
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, "jLabel1"); (This
auto code cannot be changed.) This gives compile errors:
C:\Documents and Settings\...\NewJFrame.java:34: package
org.openide.awt does not exist
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, "jLabel1");
1 error
BUILD FAILED (total time: 0 seconds)
Tried removing and reinstalling NetBeans, searching on NetBeans
community, checked classpath settings, etc. I can open project other
projects and add components without org.openide being referenced.
What do I need to change to get rid of the reference to org.openide???
Andrew Thompson - 26 Jul 2005 22:50 GMT
> What do I need to change to get rid of the reference to org.openide???
..the IDE?

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
Dancing Space Potatoes? You Bet!
Kyle - 27 Jul 2005 01:46 GMT
Thanks for the reply. Any new project I make has some reference that
by default uses this org.openide reference. I'm asking what should I
change in the IDE to remove this automatic use of the org.openide.*
files.
Kyle - 27 Jul 2005 16:47 GMT
Here's the solution. In NB 4.1, in the Form Editor settings unclick
Generate Mnemonics Code. Still don't know what selected this option.
If a wizard component is made while mnemonics is selected, you can't
turn it off.