I display two JFrame objects at the end of my program. But when I close JFrames, main() thread does not stop. It waits for me to click on stop button (the red rectangle in the picture). But I want main to stop when I close all the JFrames. Is that possible?
