GridBagLayoutCalc was changed

Add some code for JFrame.EXIT_ON_CLOSE