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

📄 test2.form#1.1.1.1

📁 Java Swing 日期控件 增加时间选择功能
💻 1
字号:
<?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="&#x65e5;&#x671f;&#x9009;&#x62e9;&#x63a7;&#x4ef6;"/>  </Properties>  <SyntheticProperties>    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>  </SyntheticProperties>  <AuxValues>    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>    <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">          <Group type="102" attributes="0">              <EmptySpace max="-2" attributes="0"/>              <Group type="103" groupAlignment="0" attributes="0">                  <Component id="jScrollPane1" alignment="0" pref="294" max="32767" attributes="0"/>                  <Group type="102" alignment="0" attributes="0">                      <Component id="jLabel1" min="-2" max="-2" attributes="0"/>                      <EmptySpace max="-2" attributes="0"/>                      <Component id="tfDate" min="-2" pref="112" max="-2" attributes="1"/>                      <EmptySpace max="-2" attributes="0"/>                      <Component id="btnDate" min="-2" max="-2" 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" alignment="0" attributes="0">              <EmptySpace max="-2" attributes="0"/>              <Group type="103" groupAlignment="3" attributes="0">                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>                  <Component id="tfDate" alignment="3" min="-2" max="-2" attributes="0"/>                  <Component id="btnDate" alignment="3" min="-2" max="-2" attributes="0"/>              </Group>              <EmptySpace min="-2" pref="111" max="-2" attributes="0"/>              <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/>              <EmptySpace max="32767" attributes="0"/>          </Group>      </Group>    </DimensionLayout>  </Layout>  <SubComponents>    <Component class="javax.swing.JLabel" name="jLabel1">      <Properties>        <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">          <Font name="&#x65b0;&#x5b8b;&#x4f53;" size="12" style="0"/>        </Property>        <Property name="text" type="java.lang.String" value="&#x65e5;&#x671f;:"/>      </Properties>    </Component>    <Component class="javax.swing.JTextField" name="tfDate">      <Events>        <EventHandler event="focusGained" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="tfDateFocusGained"/>        <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="tfDateMouseClicked"/>      </Events>    </Component>    <Component class="javax.swing.JButton" name="btnDate">      <Properties>        <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">          <Font name="&#x65b0;&#x5b8b;&#x4f53;" size="12" style="0"/>        </Property>        <Property name="text" type="java.lang.String" value="&#x9009;&#x62e9;"/>      </Properties>      <Events>        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnDateActionPerformed"/>        <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnDateMouseClicked"/>      </Events>    </Component>    <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="jTextArea1">          <Properties>            <Property name="columns" type="int" value="20"/>            <Property name="editable" type="boolean" value="false"/>            <Property name="rows" type="int" value="5"/>            <Property name="text" type="java.lang.String" value="&#x77e5;&#x8bc6;&#x70b9;&#x548c;&#x6280;&#x5de7;:&#xa;1.&#x638c;&#x63e1;&#x5728;NetBeans&#x4e0b;&#x8c03;&#x7528;&#x6b64;&#x65e5;&#x671f;&#x9009;&#x62e9;&#x63a7;&#x4ef6;&#x7684;&#x65b9;&#x6cd5;.&#xa;2.&#x638c;&#x63e1;&#x65e5;&#x671f;&#x9009;&#x62e9;&#x63a7;&#x4ef6;&#x7684;&#x5b9a;&#x4f4d;&#x4e0e;&#x4e8b;&#x4ef6;&#x89e6;&#x53d1;.&#xa;3.&#x638c;&#x63e1;&#x672c;&#x5730;&#x65f6;&#x95f4;&#x683c;&#x5f0f;&#x5316;&#x8f93;&#x51fa;&#x7684;&#x65b9;&#x6cd5;."/>          </Properties>        </Component>      </SubComponents>    </Container>  </SubComponents></Form>

⌨️ 快捷键说明

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