public void windowClosing(WindowEvent ev) {
cancelAction.actionPerformed(null);
}
});
conversion.addConversionListener(new ConversionAdapter() {
public void conversionFinished() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
cancelAction.putValue(Action.NAME, "Close");
}