xml version encoding UTF-8 import javafx geometry import javafx scene

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.Font?>
<VBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="800.0"
xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="DemoFormController">
<children>
<HBox alignment="CENTER" fillHeight="false" prefHeight="32.0" prefWidth="800.0">
<children>
<Label fx:id="statusField" text="Статус">
<font>
<Font name="Tahoma" size="27.0"/>
</font>
</Label>
</children>
</HBox>
<GridPane fx:id="panel" alignment="CENTER" gridLinesVisible="true" maxHeight="-Infinity" maxWidth="-Infinity"
prefHeight="300.0" prefWidth="300.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/>
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
</rowConstraints>
<VBox.margin>
<Insets top="10.0"/>
</VBox.margin>
</GridPane>
<HBox alignment="CENTER" prefHeight="150.0" prefWidth="200.0">
<children>
<GridPane>
<columnConstraints>
<ColumnConstraints halignment="RIGHT" minWidth="10.0" percentWidth="50.0"/>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="50.0"/>
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="80.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="80.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="80.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="80.0" vgrow="SOMETIMES"/>
</rowConstraints>
<children>
<Label text="Размер решетки:">
<HBox.margin>
<Insets right="10.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</Label>
<TextField fx:id="sizeField" alignment="CENTER" maxWidth="45.0" text="15"
GridPane.columnIndex="1">
<HBox.margin>
<Insets right="10.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</TextField>
<Label text="Распределение:" GridPane.rowIndex="1">
<HBox.margin>
<Insets right="10.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</Label>
<ChoiceBox fx:id="distrType" prefHeight="25.0" prefWidth="200.0" GridPane.columnIndex="1"
GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</ChoiceBox>
<Label text="Параметры распределения:" GridPane.rowIndex="2">
<HBox.margin>
<Insets right="10.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</Label>
<Label text="Тип соседства:" GridPane.rowIndex="3">
<HBox.margin>
<Insets right="10.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</Label>
<ChoiceBox fx:id="nType" prefHeight="25.0" prefWidth="110.0" GridPane.columnIndex="1"
GridPane.rowIndex="3">
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</ChoiceBox>
<HBox prefHeight="100.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
<children>
<TextField fx:id="param1" alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity"
prefHeight="25.0" prefWidth="45.0" text="0,5" GridPane.columnIndex="1"
GridPane.rowIndex="2">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</TextField>
<TextField fx:id="param2" alignment="CENTER" disable="true" maxWidth="-Infinity"
prefHeight="25.0" prefWidth="45.0" text="10" GridPane.columnIndex="1"
GridPane.rowIndex="2">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</HBox.margin>
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</GridPane.margin>
</TextField>
</children>
</HBox>
</children>
<HBox.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</HBox.margin>
</GridPane>
</children>
</HBox>
<HBox alignment="CENTER" fillHeight="false" minHeight="34.0" prefHeight="40.0" prefWidth="700.0">
<children>
<Button mnemonicParsing="false" onAction="#generate" text="Сгененерировать!">
<VBox.margin>
<Insets top="10.0"/>
</VBox.margin>
</Button>
</children>
</HBox>
</children>
</VBox>