demoframe.form
来自「精通NetBeans光盘源代码,很好很好的资料」· FORM 代码 · 共 100 行
FORM
100 行
<?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="DemoFrame"/> </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" alignment="0" attributes="0"> <EmptySpace min="-2" pref="66" max="-2" attributes="0"/> <Component id="jButtonKnow" min="-2" max="-2" attributes="0"/> <EmptySpace pref="144" max="32767" attributes="0"/> <Component id="jButtonNotKnow" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" pref="53" max="-2" attributes="0"/> </Group> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="24" max="-2" attributes="0"/> <Component id="jLabelQuestion" min="-2" pref="401" max="-2" attributes="0"/> </Group> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="94" max="-2" attributes="0"/> <Component id="jLabeAnswer" min="-2" pref="210" max="-2" attributes="0"/> </Group> </Group> <EmptySpace 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 min="-2" pref="44" max="-2" attributes="0"/> <Component id="jLabelQuestion" min="-2" pref="88" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/> <Component id="jLabeAnswer" min="-2" pref="48" max="-2" attributes="0"/> <EmptySpace pref="32" max="32767" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jButtonKnow" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jButtonNotKnow" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="73" max="-2" attributes="0"/> </Group> </Group> </DimensionLayout> </Layout> <SubComponents> <Component class="javax.swing.JLabel" name="jLabelQuestion"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="18" style="1"/> </Property> <Property name="text" type="java.lang.String" value="问:你了解NetBeans5.0的几个主要窗口吗?"/> </Properties> </Component> <Component class="javax.swing.JButton" name="jButtonKnow"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="18" style="1"/> </Property> <Property name="text" type="java.lang.String" value="了解"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonKnowActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="jButtonNotKnow"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="18" style="1"/> </Property> <Property name="text" type="java.lang.String" value="不了解"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonNotKnowActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="jLabeAnswer"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="18" style="1"/> </Property> </Properties> </Component> </SubComponents></Form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?