I created a class that loads up a JFrame, and that frame has JMenus and JMenuItems.
One of those JMenuItems opens up a new JFrame, and when you close that JFrame (a customised calculator), the entire program closes, instead of just the 1 JFrame.
How do I get around this?