why is it giving error : "Can not find the symbol EXIT_ON_CLOSE variable"?
Matthew Brown wrote:Because EXIT_ON_CLOSE doesn't exist in the JFrame class. It's in WindowConstants. Look at the Javadocs for the setDefaultCloseOperation method.
Matthew Brown wrote:Because EXIT_ON_CLOSE doesn't exist in the JFrame class. It's in WindowConstants.