4546474849505152535455
public void actionPerformed(ActionEvent actionevent) { if(actionevent.getActionCommand().equals("OK")) ec.reInit(p); dialog.setVisible(false); dialog.dispose(); } });