if(e.getActionCommand()=="参数法画圆"){ p=11 } } //actionPerformed //实现接口WindowListener的所有方法,用于处理发生在窗口上的事件 public void windowClosing(WindowEvent e)