Ejemplo n.º 1
0
 void store() {
   if (radioButtonSelfSign.isSelected()) {
     jfxProps.setSigningType(JFXProjectProperties.SigningType.SELF);
   } else {
     jfxProps.setSigningType(JFXProjectProperties.SigningType.KEY);
   }
   jfxProps.setSigningKeyStore(textFieldPath.getText().trim());
   jfxProps.setSigningKeyStorePassword(passwordField.getPassword());
   jfxProps.setSigningKeyAlias(textFieldKeyAlias.getText().trim());
   jfxProps.setSigningKeyPassword(passwordFieldKey.getPassword());
 }
Ejemplo n.º 2
0
  /** Creates new form JFXSigningPanel */
  public JFXSigningPanel(JFXProjectProperties props) {
    this.jfxProps = props;
    initComponents();

    if (JFXProjectProperties.SigningType.KEY == jfxProps.getSigningType()) {
      radioButtonSpecKey.setSelected(true);
    } else {
      radioButtonSelfSign.setSelected(true);
    }
    textFieldPath.setText(jfxProps.getSigningKeyStore());
    textFieldKeyAlias.setText(jfxProps.getSigningKeyAlias());
    if (jfxProps.getSigningKeyStorePassword() != null)
      passwordField.setText(new String(jfxProps.getSigningKeyStorePassword()));
    if (jfxProps.getSigningKeyPassword() != null)
      passwordFieldKey.setText(new String(jfxProps.getSigningKeyPassword()));

    refreshComponents();
  }