Netbeans package org.openide.awt does not exist

K

Kyle

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???
 
K

Kyle

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.
 
K

Kyle

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top