demojframe.form
来自「精通NetBeans光盘源代码,很好很好的资料」· FORM 代码 · 共 131 行
FORM
131 行
<?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="JFrame应用示例"/> <Property name="alwaysOnTop" type="boolean" value="true"/> </Properties> <SyntheticProperties> <SyntheticProperty name="formSizePolicy" type="int" value="1"/> </SyntheticProperties> <AuxValues> <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> <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"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <EmptySpace min="-2" pref="62" max="-2" attributes="0"/> <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" pref="55" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Component id="jCheckBoxOnTop" min="-2" max="-2" attributes="0"/> <Component id="jCheckBoxSize" alignment="0" min="-2" max="-2" attributes="0"/> </Group> </Group> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> <Component id="jLabelMessage" min="-2" pref="279" max="-2" attributes="0"/> </Group> </Group> <EmptySpace pref="43" max="32767" 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"/> <Component id="jLabelMessage" min="-2" pref="35" max="-2" attributes="0"/> <EmptySpace min="-2" pref="14" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <Component id="jCheckBoxSize" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" pref="66" max="-2" attributes="0"/> <Component id="jCheckBoxOnTop" min="-2" max="-2" attributes="0"/> </Group> <Component id="jScrollPane1" min="-2" pref="117" max="-2" attributes="0"/> </Group> <EmptySpace pref="43" max="32767" attributes="0"/> </Group> </Group> </DimensionLayout> </Layout> <SubComponents> <Component class="javax.swing.JLabel" name="jLabelMessage"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="18" style="0"/> </Property> <Property name="horizontalAlignment" type="int" value="0"/> <Property name="text" type="java.lang.String" value="这里将显示JFrame的属性"/> </Properties> </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.JList" name="jListSize"> <Properties> <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor"> <StringArray count="4"> <StringItem index="0" value="300x200 "/> <StringItem index="1" value="400x300 "/> <StringItem index="2" value="600x450 "/> <StringItem index="3" value="800x600 "/> </StringArray> </Property> </Properties> <Events> <EventHandler event="valueChanged" listener="javax.swing.event.ListSelectionListener" parameters="javax.swing.event.ListSelectionEvent" handler="jListSizeValueChanged"/> </Events> </Component> </SubComponents> </Container> <Component class="javax.swing.JCheckBox" name="jCheckBoxSize"> <Properties> <Property name="selected" type="boolean" value="true"/> <Property name="text" type="java.lang.String" value="可以更改大小"/> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo"> <EmptyBorder bottom="0" left="0" right="0" top="0"/> </Border> </Property> <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor"> <Insets value="[0, 0, 0, 0]"/> </Property> </Properties> <Events> <EventHandler event="itemStateChanged" listener="java.awt.event.ItemListener" parameters="java.awt.event.ItemEvent" handler="jCheckBoxSizeItemStateChanged"/> </Events> </Component> <Component class="javax.swing.JCheckBox" name="jCheckBoxOnTop"> <Properties> <Property name="selected" type="boolean" value="true"/> <Property name="text" type="java.lang.String" value="总在最前面"/> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo"> <EmptyBorder bottom="0" left="0" right="0" top="0"/> </Border> </Property> <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor"> <Insets value="[0, 0, 0, 0]"/> </Property> </Properties> <Events> <EventHandler event="itemStateChanged" listener="java.awt.event.ItemListener" parameters="java.awt.event.ItemEvent" handler="jCheckBoxOnTopItemStateChanged"/> </Events> </Component> </SubComponents></Form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?