WindowConstants instead of JFrame