Доработка формы.
This commit is contained in:
parent
dfe3807645
commit
72d14716e7
@ -3,7 +3,7 @@
|
||||
<grid id="27dc6" binding="MainPanel" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<xy x="20" y="20" width="994" height="609"/>
|
||||
<xy x="20" y="20" width="994" height="647"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
@ -11,46 +11,30 @@
|
||||
<grid id="92d87" binding="PictureBoxPlane" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="730" height="550"/>
|
||||
<preferred-size width="730" height="550"/>
|
||||
<maximum-size width="730" height="550"/>
|
||||
<minimum-size width="730" height="650"/>
|
||||
<preferred-size width="730" height="650"/>
|
||||
<maximum-size width="730" height="650"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children/>
|
||||
</grid>
|
||||
<grid id="4871f" binding="ButtonGroupPanel" layout-manager="GridLayoutManager" row-count="13" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<grid id="4871f" binding="ButtonGroupPanel" layout-manager="GridLayoutManager" row-count="17" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="250" height="550"/>
|
||||
<preferred-size width="250" height="550"/>
|
||||
<maximum-size width="250" height="550"/>
|
||||
<minimum-size width="250" height="650"/>
|
||||
<preferred-size width="250" height="650"/>
|
||||
<maximum-size width="250" height="650"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<border type="none" title="Инструменты"/>
|
||||
<children>
|
||||
<component id="1388e" class="javax.swing.JComboBox" binding="ComboBoxSelectorMap">
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="2" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties>
|
||||
<model>
|
||||
<item value="Простая карта"/>
|
||||
<item value="Буря в пустыне"/>
|
||||
<item value="Звёздные войны"/>
|
||||
</model>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="d0967" class="javax.swing.JButton" binding="ButtonLeft">
|
||||
<constraints>
|
||||
<grid row="12" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="4" fill="0" indent="0" use-parent-layout="false">
|
||||
<grid row="16" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="4" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="45" height="45"/>
|
||||
<preferred-size width="45" height="45"/>
|
||||
<maximum-size width="45" height="45"/>
|
||||
@ -62,7 +46,7 @@
|
||||
</component>
|
||||
<component id="d9af3" class="javax.swing.JButton" binding="ButtonDown">
|
||||
<constraints>
|
||||
<grid row="12" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<grid row="16" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="45" height="45"/>
|
||||
<preferred-size width="45" height="45"/>
|
||||
<maximum-size width="45" height="45"/>
|
||||
@ -74,7 +58,7 @@
|
||||
</component>
|
||||
<component id="9e43" class="javax.swing.JButton" binding="ButtonRight">
|
||||
<constraints>
|
||||
<grid row="12" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false">
|
||||
<grid row="16" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="45" height="45"/>
|
||||
<preferred-size width="45" height="45"/>
|
||||
<maximum-size width="45" height="45"/>
|
||||
@ -86,7 +70,7 @@
|
||||
</component>
|
||||
<component id="4d1dd" class="javax.swing.JButton" binding="ButtonUp">
|
||||
<constraints>
|
||||
<grid row="11" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<grid row="15" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="45" height="45"/>
|
||||
<preferred-size width="45" height="45"/>
|
||||
<maximum-size width="45" height="45"/>
|
||||
@ -98,7 +82,7 @@
|
||||
</component>
|
||||
<component id="67190" class="javax.swing.JButton" binding="ButtonShowOnMap">
|
||||
<constraints>
|
||||
<grid row="9" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<grid row="13" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
@ -110,7 +94,7 @@
|
||||
</component>
|
||||
<component id="28576" class="javax.swing.JButton" binding="ButtonShowStorage">
|
||||
<constraints>
|
||||
<grid row="7" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<grid row="11" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
@ -122,7 +106,7 @@
|
||||
</component>
|
||||
<component id="7119" class="javax.swing.JButton" binding="ButtonAddPlane">
|
||||
<constraints>
|
||||
<grid row="2" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<grid row="6" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
@ -134,7 +118,7 @@
|
||||
</component>
|
||||
<component id="6f119" class="javax.swing.JTextField" binding="MaskedTextBoxPosition">
|
||||
<constraints>
|
||||
<grid row="4" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<grid row="8" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
@ -147,7 +131,7 @@
|
||||
</component>
|
||||
<component id="d75e9" class="javax.swing.JButton" binding="ButtonRemovePlane">
|
||||
<constraints>
|
||||
<grid row="5" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<grid row="9" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
@ -157,31 +141,101 @@
|
||||
<text value="Удалить самолёт"/>
|
||||
</properties>
|
||||
</component>
|
||||
<vspacer id="85889">
|
||||
<constraints>
|
||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
</vspacer>
|
||||
<vspacer id="ed421">
|
||||
<constraints>
|
||||
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
<grid row="7" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
</vspacer>
|
||||
<vspacer id="f972a">
|
||||
<constraints>
|
||||
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
<grid row="10" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
</vspacer>
|
||||
<vspacer id="65c78">
|
||||
<constraints>
|
||||
<grid row="8" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
<grid row="12" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
</vspacer>
|
||||
<vspacer id="7d70b">
|
||||
<constraints>
|
||||
<grid row="10" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
<grid row="14" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
</vspacer>
|
||||
<vspacer id="d4b8a">
|
||||
<constraints>
|
||||
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
</vspacer>
|
||||
<grid id="fe895" layout-manager="GridLayoutManager" row-count="5" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="5" col-span="3" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none" title="Карты"/>
|
||||
<children>
|
||||
<component id="7efbe" class="javax.swing.JTextField" binding="TextBoxNewMapName">
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties/>
|
||||
</component>
|
||||
<component id="1388e" class="javax.swing.JComboBox" binding="ComboBoxSelectorMap">
|
||||
<constraints>
|
||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties>
|
||||
<model>
|
||||
<item value="Простая карта"/>
|
||||
<item value="Буря в пустыне"/>
|
||||
<item value="Звёздные войны"/>
|
||||
</model>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="3b6b1" class="javax.swing.JButton" binding="ButtonAddMap">
|
||||
<constraints>
|
||||
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties>
|
||||
<text value="Добавить карту"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="9a389" class="javax.swing.JList" binding="list1" default-binding="true">
|
||||
<constraints>
|
||||
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="2" anchor="0" fill="3" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="100"/>
|
||||
<preferred-size width="220" height="100"/>
|
||||
<maximum-size width="220" height="100"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties/>
|
||||
</component>
|
||||
<component id="81eff" class="javax.swing.JButton" binding="ButtonDeleteMap">
|
||||
<constraints>
|
||||
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||
<minimum-size width="220" height="30"/>
|
||||
<preferred-size width="220" height="30"/>
|
||||
<maximum-size width="220" height="30"/>
|
||||
</grid>
|
||||
</constraints>
|
||||
<properties>
|
||||
<text value="Удалить карту"/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
</children>
|
||||
</grid>
|
||||
</children>
|
||||
|
@ -21,6 +21,10 @@ public class FormMapWithSetPlanesGeneric {
|
||||
private JButton ButtonAddPlane;
|
||||
private JTextField MaskedTextBoxPosition;
|
||||
private JButton ButtonRemovePlane;
|
||||
private JTextField TextBoxNewMapName;
|
||||
private JButton ButtonAddMap;
|
||||
private JList list1;
|
||||
private JButton ButtonDeleteMap;
|
||||
|
||||
//объект от класса карты с набором объектов
|
||||
private MapWithSetPlanesGeneric<DrawningObjectPlane, AbstractMap> _mapPlanesCollectionGeneric;
|
||||
|
@ -5,11 +5,11 @@ public class Main
|
||||
public static void main(String[] args)
|
||||
{
|
||||
JFrame frame = new JFrame("Аэробус");
|
||||
frame.setContentPane(new FormParam().MainPanel);
|
||||
frame.setContentPane(new FormMapWithSetPlanesGeneric().MainPanel);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.setLocation(500, 200);
|
||||
frame.setLocation(200, 100);
|
||||
frame.pack();
|
||||
frame.setSize(800, 500);
|
||||
frame.setSize(1000, 700);
|
||||
frame.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
4
Project/src/MapsCollection.java
Normal file
4
Project/src/MapsCollection.java
Normal file
@ -0,0 +1,4 @@
|
||||
public class MapsCollection
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user