}
@Override
public void exitSelected(ExitEvent event) {
try {
Properties p = Properties.getInstance();
p.set("x", getLocation().x);
p.set("y", getLocation().y);
p.set("width", getSize().width);
p.set("height", getSize().height);
}
catch (Throwable thrown) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, thrown);
JOptionPane.showMessageDialog(this, thrown.getMessage());
}