📄 demojlistframe.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="JList应用示例"/> </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" alignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <EmptySpace min="-2" pref="30" max="-2" attributes="0"/> <Component id="jLabelList" pref="68" max="32767" attributes="0"/> <EmptySpace min="-2" pref="54" max="-2" attributes="0"/> </Group> <Group type="102" alignment="1" attributes="0"> <EmptySpace max="-2" attributes="0"/> <Component id="jScrollPane1" min="-2" pref="84" max="-2" attributes="0"/> <EmptySpace min="-2" pref="38" max="-2" attributes="0"/> </Group> </Group> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="1" attributes="0"> <EmptySpace min="-2" pref="44" max="-2" attributes="0"/> <Component id="jButtonAdd" min="-2" max="-2" attributes="0"/> <EmptySpace pref="99" max="32767" attributes="0"/> <Component id="jButtonDelete" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" pref="78" max="-2" attributes="0"/> </Group> <Group type="102" alignment="0" attributes="0"> <Group type="103" groupAlignment="1" attributes="0"> <Component id="jTextFieldCountryName" alignment="1" min="-2" pref="309" max="-2" attributes="1"/> <Component id="jLabelActionMessage" alignment="0" min="-2" pref="301" max="-2" attributes="1"/> </Group> <EmptySpace max="-2" attributes="0"/> </Group> </Group> </Group> </Group> </DimensionLayout> <DimensionLayout dim="1"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="18" max="-2" attributes="0"/> <Component id="jLabelList" min="-2" pref="24" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <Component id="jLabelActionMessage" min="-2" pref="104" max="-2" attributes="0"/> <EmptySpace min="-2" pref="20" max="-2" attributes="0"/> <Component id="jTextFieldCountryName" min="-2" max="-2" attributes="0"/> <EmptySpace pref="28" max="32767" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jButtonDelete" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jButtonAdd" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> </Group> <Group type="102" attributes="0"> <Component id="jScrollPane1" min="-2" pref="184" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/> </Group> </Group> </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.JList" name="jListCountryList"> <Events> <EventHandler event="valueChanged" listener="javax.swing.event.ListSelectionListener" parameters="javax.swing.event.ListSelectionEvent" handler="jListCountryListValueChanged"/> </Events> </Component> </SubComponents> </Container> <Component class="javax.swing.JButton" name="jButtonAdd"> <Properties> <Property name="text" type="java.lang.String" value="添加"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonAddActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="jLabelActionMessage"> <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.JTextField" name="jTextFieldCountryName"> </Component> <Component class="javax.swing.JButton" name="jButtonDelete"> <Properties> <Property name="text" type="java.lang.String" value="删除"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonDeleteActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="jLabelList"> <Properties> <Property name="horizontalAlignment" type="int" value="0"/> <Property name="text" type="java.lang.String" value="国家列表"/> </Properties> </Component> </SubComponents></Form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -