I'm curious, when setting the default close operation for JFrames, should you use JFrame's constants or WindowConstants' constants?
As far as I can tell they're the same. Although, IntelliJ (not tested on other IDE's) prefers WindowConstants' EXIT_ON_CLOSE at least.
So basically my question is, which one should be used? Which do you use? If any, what's the difference?