demojdialog.form
来自「精通NetBeans光盘源代码,很好很好的资料」· FORM 代码 · 共 83 行
FORM
83 行
<?xml version="1.0" encoding="UTF-8" ?><Form version="1.3" type="org.netbeans.modules.form.forminfo.JDialogFormInfo"> <Properties> <Property name="defaultCloseOperation" type="int" value="2"/> <Property name="title" type="java.lang.String" value="JDilog应用示例"/> <Property name="alwaysOnTop" type="boolean" value="true"/> <Property name="modal" 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="60" max="-2" attributes="0"/> <Component id="jButton1" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" pref="78" max="-2" attributes="0"/> <Component id="jButton2" min="-2" max="-2" attributes="0"/> </Group> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="47" max="-2" attributes="0"/> <Component id="jLabel1" min="-2" pref="230" max="-2" attributes="0"/> </Group> </Group> <EmptySpace pref="71" max="32767" attributes="0"/> </Group> </Group> </DimensionLayout> <DimensionLayout dim="1"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="1" attributes="0"> <EmptySpace min="-2" pref="35" max="-2" attributes="0"/> <Component id="jLabel1" min="-2" pref="60" max="-2" attributes="0"/> <EmptySpace pref="43" max="32767" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="49" max="-2" 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="宋体" size="24" style="0"/> </Property> <Property name="horizontalAlignment" type="int" value="0"/> <Property name="text" type="java.lang.String" value="这是一个对话框"/> </Properties> </Component> <Component class="javax.swing.JButton" name="jButton1"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="14" style="0"/> </Property> <Property name="text" type="java.lang.String" value="确定"/> </Properties> </Component> <Component class="javax.swing.JButton" name="jButton2"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="宋体" size="14" style="0"/> </Property> <Property name="text" type="java.lang.String" value="取消"/> </Properties> </Component> </SubComponents></Form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?