}
}
public static void editDefault(JFrame owner) throws SAXException, IOException {
owner.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
Document document = ClientConfiguration.getDefault().getDefaultDocument();
DocumentDialog dlg = new DocumentDialog(owner);
dlg.editingDefault = true;
dlg.initComponents(false);
dlg.banner.showSheet("editDefault");
if (document == null) {
JXL jxl = new JXL();
Element site = jxl.createSiteElement();
org.w3c.dom.Document dom = site.getOwnerDocument();
Element name = dom.createElement("name");
name.appendChild(dom.createTextNode("default"));
site.appendChild(dom.createElement("uri"));
document = jxl.add(site);
jxl.save(new File(ClientConfiguration.getDefault().getDefaultJXLPath()));
} else {
dlg.initValues(document);
}
owner.setCursor(Cursor.getDefaultCursor());
dlg.setLocationRelativeTo(owner);
dlg.nameText.setText("");
dlg.setTitle("Default Settings");
dlg.show();
if (!dlg.isCancelled()) {
dlg.update(document);
document.getJXL().save();
}
}