I just downloaded and installed sdk 1.4.0. I am trying to complile my first swing code, but I get the following error:
No variable EXIT_ON_CLOSE defined in class javax.swing.JFrame From reading the docs, I belive that this was a new addition to 1.4 from 1.3. However I belive that I am currently running 1.4 on my system. I can type
java -version at the dos command line and I see that I do in fact have Standard Edition (1.4.0) running.
My File:
--------
c:\code\java\application\firstswing\HelloWorld.swing
CLASSPATH
---------
CLASSPATH=.;c:\j2sdk1.4.0;c:\code\java\application\firstswing
My Code:
--------
Can someone please tell me what I am doing wrong?