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

📄 clientfram.form

📁 它能够进行简单的文字聊天和基本的信息交换。
💻 FORM
字号:
<?xml version="1.0" encoding="UTF-8" ?><Form version="1.3" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">  <Properties>    <Property name="defaultCloseOperation" type="int" value="3"/>    <Property name="title" type="java.lang.String" value="peer-chat"/>    <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">      <Color blue="99" green="99" red="99" type="rgb"/>    </Property>    <Property name="name" type="java.lang.String" value="Client"/>  </Properties>  <SyntheticProperties>    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>  </SyntheticProperties>  <Events>    <EventHandler event="windowClosed" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowClosed"/>  </Events>  <AuxValues>    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>  </AuxValues>  <Layout>    <DimensionLayout dim="0">      <Group type="103" groupAlignment="0" attributes="0">          <Component id="jPanel1" alignment="0" max="32767" attributes="0"/>      </Group>    </DimensionLayout>    <DimensionLayout dim="1">      <Group type="103" groupAlignment="0" attributes="0">          <Component id="jPanel1" alignment="1" max="32767" attributes="0"/>      </Group>    </DimensionLayout>  </Layout>  <SubComponents>    <Container class="javax.swing.JPanel" name="jPanel1">      <Properties>        <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">          <Color blue="33" green="33" red="0" type="rgb"/>        </Property>        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">          <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">            <EtchetBorder>              <Color PropertyName="highlight" blue="cc" green="cc" red="cc" type="rgb"/>            </EtchetBorder>          </Border>        </Property>      </Properties>      <Layout>        <DimensionLayout dim="0">          <Group type="103" groupAlignment="0" attributes="0">              <Group type="102" attributes="0">                  <Group type="103" groupAlignment="0" attributes="0">                      <Group type="102" max="-2" attributes="0">                          <Group type="103" groupAlignment="0" attributes="0">                              <Group type="102" attributes="0">                                  <EmptySpace max="-2" attributes="0"/>                                  <Component id="jScrollPane1" min="-2" pref="230" max="-2" attributes="0"/>                              </Group>                              <Group type="102" alignment="0" attributes="0">                                  <EmptySpace min="-2" pref="18" max="-2" attributes="0"/>                                  <Component id="jMsg" min="-2" pref="211" max="-2" attributes="0"/>                              </Group>                          </Group>                          <Group type="103" groupAlignment="0" max="-2" attributes="0">                              <Group type="102" max="-2" attributes="0">                                  <EmptySpace min="-2" pref="6" max="-2" attributes="0"/>                                  <Group type="103" groupAlignment="0" max="-2" attributes="0">                                      <Group type="102" alignment="0" attributes="0">                                          <Component id="jSend" linkSize="2" min="-2" max="-2" attributes="0"/>                                          <EmptySpace max="-2" attributes="0"/>                                          <Component id="jrcv" linkSize="2" min="-2" pref="87" max="-2" attributes="0"/>                                      </Group>                                      <Group type="102" alignment="0" attributes="0">                                          <Component id="jLogin" linkSize="2" min="-2" pref="73" max="-2" attributes="0"/>                                          <EmptySpace max="-2" attributes="0"/>                                          <Component id="jLogout" linkSize="2" min="-2" pref="87" max="-2" attributes="0"/>                                      </Group>                                  </Group>                              </Group>                              <Group type="102" alignment="0" attributes="0">                                  <EmptySpace min="-2" pref="16" max="-2" attributes="0"/>                                  <Component id="jScrollPane2" min="-2" max="-2" attributes="0"/>                              </Group>                          </Group>                      </Group>                      <Group type="102" alignment="0" attributes="0">                          <EmptySpace min="10" pref="10" max="10" attributes="0"/>                          <Component id="jSeparator1" pref="416" max="32767" attributes="0"/>                      </Group>                  </Group>                  <EmptySpace max="-2" attributes="0"/>              </Group>          </Group>        </DimensionLayout>        <DimensionLayout dim="1">          <Group type="103" groupAlignment="0" attributes="0">              <Group type="102" attributes="0">                  <EmptySpace pref="30" max="32767" attributes="0"/>                  <Group type="103" groupAlignment="1" attributes="0">                      <Group type="102" attributes="0">                          <Component id="jScrollPane2" min="-2" pref="146" max="-2" attributes="0"/>                          <EmptySpace max="-2" attributes="0"/>                          <Group type="103" groupAlignment="3" attributes="0">                              <Component id="jLogin" alignment="3" min="-2" max="-2" attributes="0"/>                              <Component id="jLogout" alignment="3" min="-2" max="-2" attributes="0"/>                          </Group>                          <EmptySpace max="-2" attributes="0"/>                      </Group>                      <Group type="102" attributes="0">                          <Component id="jScrollPane1" min="-2" pref="168" max="-2" attributes="0"/>                          <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>                      </Group>                  </Group>                  <Component id="jSeparator1" min="-2" pref="12" max="-2" attributes="0"/>                  <EmptySpace min="-2" pref="16" max="-2" attributes="0"/>                  <Group type="103" groupAlignment="3" attributes="0">                      <Component id="jSend" alignment="3" min="-2" max="-2" attributes="0"/>                      <Component id="jrcv" alignment="3" min="-2" max="-2" attributes="0"/>                      <Component id="jMsg" alignment="3" min="-2" max="-2" attributes="0"/>                  </Group>                  <EmptySpace max="-2" attributes="0"/>              </Group>          </Group>        </DimensionLayout>      </Layout>      <SubComponents>        <Container class="javax.swing.JScrollPane" name="jScrollPane1">          <AuxValues>            <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>          </AuxValues>          <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>          <SubComponents>            <Component class="javax.swing.JTextArea" name="jShow">              <Properties>                <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">                  <Color blue="cc" green="cc" red="cc" type="rgb"/>                </Property>                <Property name="columns" type="int" value="20"/>                <Property name="rows" type="int" value="5"/>                <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">                  <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">                    <EtchetBorder>                      <Color PropertyName="highlight" blue="99" green="99" red="99" type="rgb"/>                    </EtchetBorder>                  </Border>                </Property>              </Properties>              <AuxValues>                <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="jShow.setEnabled(false);"/>              </AuxValues>            </Component>          </SubComponents>        </Container>        <Component class="javax.swing.JTextField" name="jMsg">          <Properties>            <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="0" green="cc" red="cc" type="rgb"/>            </Property>            <Property name="columns" type="int" value="20"/>          </Properties>        </Component>        <Component class="javax.swing.JSeparator" name="jSeparator1">        </Component>        <Component class="javax.swing.JButton" name="jLogin">          <Properties>            <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="cc" green="cc" red="cc" type="rgb"/>            </Property>            <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">              <Font name="&#x5b8b;&#x4f53;" size="12" style="1"/>            </Property>            <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="33" green="33" red="33" type="rgb"/>            </Property>            <Property name="text" type="java.lang.String" value="Connect"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jLoginActionPerformed"/>          </Events>        </Component>        <Component class="javax.swing.JButton" name="jLogout">          <Properties>            <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="cc" green="cc" red="cc" type="rgb"/>            </Property>            <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">              <Font name="&#x5b8b;&#x4f53;" size="12" style="1"/>            </Property>            <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="33" green="33" red="33" type="rgb"/>            </Property>            <Property name="text" type="java.lang.String" value="Disconnect"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jLogoutActionPerformed"/>          </Events>        </Component>        <Component class="javax.swing.JButton" name="jSend">          <Properties>            <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="cc" green="cc" red="cc" type="rgb"/>            </Property>            <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">              <Font name="&#x5b8b;&#x4f53;" size="12" style="1"/>            </Property>            <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="33" green="33" red="33" type="rgb"/>            </Property>            <Property name="text" type="java.lang.String" value="SendMsg"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jSendActionPerformed"/>          </Events>        </Component>        <Component class="javax.swing.JButton" name="jrcv">          <Properties>            <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="cc" green="cc" red="cc" type="rgb"/>            </Property>            <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">              <Font name="&#x5b8b;&#x4f53;" size="12" style="1"/>            </Property>            <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="33" green="33" red="33" type="rgb"/>            </Property>            <Property name="text" type="java.lang.String" value="Rcvifile"/>          </Properties>          <Events>            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jrcvActionPerformed"/>          </Events>        </Component>        <Container class="javax.swing.JScrollPane" name="jScrollPane2">          <Properties>            <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">              <Color blue="33" green="33" red="33" type="rgb"/>            </Property>          </Properties>          <AuxValues>            <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>          </AuxValues>          <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>          <SubComponents>            <Component class="javax.swing.JTextArea" name="jrecShow">              <Properties>                <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">                  <Color blue="cc" green="cc" red="cc" type="rgb"/>                </Property>                <Property name="columns" type="int" value="20"/>                <Property name="editable" type="boolean" value="false"/>                <Property name="rows" type="int" value="5"/>              </Properties>            </Component>          </SubComponents>        </Container>      </SubComponents>    </Container>  </SubComponents></Form>

⌨️ 快捷键说明

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