在下面这段代码的划线处,填写什么样的代码,才能保证当用户单击框架的关闭按钮时,能同时关闭程序的运行。public class GraphicalHelloWorld { public static void main(String args[]) { JFrame frame=new JFrame( ); frame.setDefaultCloseOperation( ); frame.setVisible(true); frame.setSize(500,300); } }
JFrame.EXIT_ON_CLOSE