Java: Replace JFrame.EXIT_ON_CLOSE in last commit to WindowConstants.EXIT_ON_CLOSE