Java GUI“无法找到符号”

时间:2014-01-22 03:16:44

标签: java swing user-interface compilation symbols

有人可以向我解释为什么它找不到'符号'我已经做了一点点查找,但这对我没有意义。我正在使用IDE。 (下面有一个红线:jTextField1ActionPerformed(evt);)与第二个块相同的东西,第三个是IDE中的编译信息。有人可以解释一下,BTW IDE这样做,所以我不知道该怎么做。 问题领域1:

 jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
}

 jTextField3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField3ActionPerformed(evt);
            }



Updating property file: C:\Users\nate\Documents\Jeopardy\build\built-jar.properties
Created dir: C:\Users\nate\Documents\Jeopardy\build\classes
Created dir: C:\Users\nate\Documents\Jeopardy\build\empty
Created dir: C:\Users\nate\Documents\Jeopardy\build\generated-sources\ap-source-output
Compiling 1 source file to C:\Users\nate\Documents\Jeopardy\build\classes
C:\Users\nate\Documents\Jeopardy\src\jeopardy\NewJFrame.java:58: error: cannot find symbol
                jTextField1ActionPerformed(evt);
  symbol: method jTextField1ActionPerformed(ActionEvent)
C:\Users\nate\Documents\Jeopardy\src\jeopardy\NewJFrame.java:212: error: cannot find symbol
                jTextField3ActionPerformed(evt);
  symbol: method jTextField3ActionPerformed(ActionEvent)
2 errors
C:\Users\nate\Documents\Jeopardy\nbproject\build-impl.xml:926: The following error occurred while executing this line:
C:\Users\nate\Documents\Jeopardy\nbproject\build-impl.xml:268: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

0 个答案:

没有答案