Hi i'm new to Java.I tried to writte a simple code to create a Window.I compiled the code and get this error message:

No variable EXIT_ON_CLOSE defined in class javax.swing.JFrame.
aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

I dunno what to do?!

thx in advance