close operation

added
--container.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);