Ejemplo n.º 1
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();
  }