⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swingui.form

📁 jxta_src_2.41b jxta 2.41b 最新版源码 from www.jxta.org
💻 FORM
📖 第 1 页 / 共 3 页
字号:
          <Properties>            <Property name="text" type="java.lang.String" value="Generate Invitation..."/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="adminInviteButtonActionPerformed"/>          </Events>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="2" gridY="0" gridWidth="1" gridHeight="1" fill="3" ipadX="0" ipadY="0" insetsTop="2" insetsLeft="2" insetsBottom="2" insetsRight="2" anchor="23" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>        <Component class="javax.swing.JLabel" name="adminInvitationPasswordLabel">          <Properties>            <Property name="horizontalAlignment" type="int" value="11"/>            <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">              <ComponentRef name="adminInvitationPasswordField"/>            </Property>            <Property name="text" type="java.lang.String" value="Invitation Password"/>          </Properties>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="3" ipadX="0" ipadY="0" insetsTop="3" insetsLeft="0" insetsBottom="0" insetsRight="3" anchor="23" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>        <Component class="javax.swing.JPasswordField" name="adminInvitationPasswordField">          <Properties>            <Property name="columns" type="int" value="16"/>          </Properties>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="4" insetsLeft="2" insetsBottom="2" insetsRight="4" anchor="23" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>      </SubComponents>    </Container>    <Container class="javax.swing.JPanel" name="ownerTab">      <Properties>        <Property name="toolTipText" type="java.lang.String" value="Actions for Peer Group Owner"/>        <Property name="name" type="java.lang.String" value="Owner"/>        <Property name="nextFocusableComponent" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">          <ComponentRef name="keyStorePasswordField"/>        </Property>      </Properties>      <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>      <SubComponents>        <Component class="javax.swing.JButton" name="ownerSignCSRButton">          <Properties>            <Property name="text" type="java.lang.String" value="Sign CSR..."/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ownerSignCSRButtonActionPerformed"/>          </Events>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="2" insetsLeft="2" insetsBottom="2" insetsRight="2" anchor="25" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>        <Component class="javax.swing.JLabel" name="ownerPasswordLabel">          <Properties>            <Property name="horizontalAlignment" type="int" value="11"/>            <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">              <ComponentRef name="ownerPasswordField"/>            </Property>            <Property name="text" type="java.lang.String" value="Owner Password"/>          </Properties>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="3" insetsLeft="0" insetsBottom="0" insetsRight="3" anchor="23" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>        <Component class="javax.swing.JPasswordField" name="ownerPasswordField">          <Properties>            <Property name="columns" type="int" value="16"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ownerPasswordFieldActionPerformed"/>            <EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="ownerPasswordFieldKeyReleasedHandler"/>          </Events>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="4" insetsLeft="2" insetsBottom="2" insetsRight="4" anchor="24" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>        <Component class="javax.swing.JButton" name="ownerAuthenticateButton">          <Properties>            <Property name="text" type="java.lang.String" value="Authencticate"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ownerAuthenticateButtonActionPerformed"/>          </Events>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="2" insetsLeft="2" insetsBottom="2" insetsRight="2" anchor="21" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>        <Component class="javax.swing.JButton" name="ownerResignButton">          <Properties>            <Property name="text" type="java.lang.String" value="Resign"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ownerResignButtonActionPerformed"/>          </Events>          <Constraints>            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">              <GridBagConstraints gridX="1" gridY="1" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="2" insetsLeft="2" insetsBottom="2" insetsRight="2" anchor="22" weightX="0.0" weightY="0.0"/>            </Constraint>          </Constraints>        </Component>      </SubComponents>    </Container>    <Container class="javax.swing.JPanel" name="invitationTab">      <Properties>        <Property name="toolTipText" type="java.lang.String" value="Actions for Confirming a Peer Group Invitation"/>        <Property name="focusable" type="boolean" value="false"/>        <Property name="name" type="java.lang.String" value="Invitation"/>        <Property name="nextFocusableComponent" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">          <ComponentRef name="keyStorePasswordField"/>        </Property>      </Properties>      <AuxValues>        <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="if( !membership.getPSEConfig().isInitialized() ) {&#xa;    tabs.add( invitationTab );&#xa;}"/>      </AuxValues>      <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>      <SubComponents>        <Component class="javax.swing.JLabel" name="invitationDescriptionText">          <Properties>            <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">              <Font name="Dialog" size="12" style="0"/>            </Property>            <Property name="text" type="java.lang.String" value="Confirm the invitation &quot;%1&quot; from &quot;%2&quot; to join the JXTA Peer Group &quot;%3&quot;."/>            <Property name="horizontalTextPosition" type="int" value="10"/>          </Properties>          <AuxValues>            <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="if( !membership.getPSEConfig().isInitialized() ) {&#xa;    try {&#xa;        AuthenticationCredential application = new AuthenticationCredential( group, &quot;StringAuthentication&quot;, null );&#xa;        invitationAuthenticator = (StringAuthenticator) membership.apply(application);&#xa;    } catch( ProtocolNotSupportedException noAuthenticator ) {&#xa;        throw new UndeclaredThrowableException( noAuthenticator, &quot;String authenticator not available!&quot; );&#xa;    }&#xa;    &#xa;    // The invitation authenticator allows us to get the invitation&#xa;    // certificate even if we don&apos;t have a keystore password. The certificate&#xa;    // will be requestable via the local peer&apos;s peer id.&#xa;    X509Certificate invitationCert = invitationAuthenticator.getCertificate( new char[0], group.getPeerID() );&#xa;            &#xa;    StringBuffer description = new StringBuffer( invitationDescriptionText.getText() );&#xa;    &#xa;    String subjectName = PSEUtils.getCertSubjectCName(invitationCert);&#xa;    int replaceIdx = description.indexOf(&quot;%1&quot;);&#xa;    if( (-1 != replaceIdx) &amp;&amp; (null != subjectName) ) {&#xa;        description.replace(replaceIdx, replaceIdx + 2, subjectName);&#xa;    }&#xa;    &#xa;    String issuerName = PSEUtils.getCertIssuerCName(invitationCert);&#xa;    replaceIdx = description.indexOf(&quot;%2&quot;);&#xa;    if( (-1 != replaceIdx) &amp;&amp; (null != issuerName) ) {&#xa;        description.replace(replaceIdx, replaceIdx + 2, issuerName);&#xa;    }&#xa;    &#xa;    replaceIdx = description.indexOf( &quot;%3&quot;);&#xa;    if( -1 != replaceIdx ) {&#xa;        String groupName = group.getPeerGroupName();&#xa;        &#xa;        if(null == groupName ) {&#xa;            groupName = &quot;ID &quot; + group.getPeerGroupID().toString();&#xa;        }&#xa;        description.replace( replaceIdx, replaceIdx + 2, groupName);&#xa;    }&#xa;       &#xa;    invitationDescriptionText.setText( description.toString() );&#xa;    }"/>            <AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -