}
return false;
}
public static void saveProperties(String PROPERTIES_FILE, FBEdit fbedit) {
MyProperties properties = new MyProperties();
properties.setProperty("position.left",
Integer.toString(fbedit.getLocation().x));
properties.setProperty("position.top",
Integer.toString(fbedit.getLocation().y));
properties.setProperty("position.width",
Integer.toString(fbedit.getSize().width));
properties.setProperty("position.height",
Integer.toString(fbedit.getSize().height));
properties.setProperty("box.password",
Encryption.encrypt(fbedit.getbox_password()));
properties.setProperty("box.username", fbedit.getbox_username());
properties.setProperty("box.address", fbedit.getbox_address());
properties.setProperty("readOnStartup", fbedit.getRASstate());
properties.setProperty("NoChecks", fbedit.getNoChecksState());
properties.setProperty("language", fbedit.getLanguage());
try {
FileOutputStream fos = new FileOutputStream(PROPERTIES_FILE);
properties.storeToXML(fos, "Properties for FBEditor");
fos.close();
} catch (FileNotFoundException filenotfoundexception) {
} catch (IOException ioexception) {
}
}