Used WindowConstants constant to better reflect intent