@Override
public void saveProperties(AppConfig config) {
config.setProperty("payment.commerceid", comboValue(jtxtCommerceCode.getText()));
config.setProperty("payment.terminal", comboValue(jtxtCommerceTerminal.getText()));
AltEncrypter cypher = new AltEncrypter("cypherkey");
config.setProperty("payment.commercesign", "crypt:" + cypher.encrypt(new String(jtxtCommerceSign.getPassword())));
config.setProperty("payment.SHA", comboValue(jCheckBox1.isSelected()));
}
private String comboValue(Object value) {
return value == null ? "" : value.toString();