File src/salesman/ui/MainWindow.fxml changed (mode: 100644) (index 3902d97..25b6286) |
1 |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
2 |
|
|
|
3 |
|
<?import javafx.scene.control.Label?> |
|
4 |
|
<?import javafx.scene.control.SplitPane?> |
|
5 |
|
<?import javafx.scene.control.TextField?> |
|
6 |
|
<?import javafx.scene.layout.AnchorPane?> |
|
7 |
|
<?import javafx.scene.layout.ColumnConstraints?> |
|
8 |
|
<?import javafx.scene.layout.GridPane?> |
|
9 |
|
<?import javafx.scene.layout.Pane?> |
|
10 |
|
<?import javafx.scene.layout.RowConstraints?> |
3 |
11 |
|
|
4 |
|
<?import javafx.scene.layout.*?> |
|
5 |
|
|
|
6 |
|
<AnchorPane xmlns="http://javafx.com/javafx" |
|
7 |
|
xmlns:fx="http://javafx.com/fxml" |
|
8 |
|
fx:controller="salesman.ui.UILoader" |
|
9 |
|
prefHeight="400.0" prefWidth="600.0"> |
|
10 |
|
|
|
11 |
|
</AnchorPane> |
|
|
12 |
|
<SplitPane dividerPositions="0.29797979797979796" maxHeight="600.0" maxWidth="-Infinity" minHeight="500.0" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.141"> |
|
13 |
|
<items> |
|
14 |
|
<AnchorPane maxHeight="598.0" maxWidth="220.0" minHeight="598.0" minWidth="220.0" prefHeight="598.0" prefWidth="220.0" SplitPane.resizableWithParent="false"> |
|
15 |
|
<children> |
|
16 |
|
<AnchorPane layoutY="23.0" maxHeight="300.0" maxWidth="220.0" minHeight="300.0" minWidth="220.0" prefHeight="200.0" prefWidth="200.0" AnchorPane.topAnchor="0.0"> |
|
17 |
|
<children> |
|
18 |
|
<GridPane layoutX="-41.0" layoutY="51.0" prefHeight="45.0" prefWidth="220.0" AnchorPane.bottomAnchor="257.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> |
|
19 |
|
<columnConstraints> |
|
20 |
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
|
21 |
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
|
22 |
|
</columnConstraints> |
|
23 |
|
<rowConstraints> |
|
24 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
25 |
|
</rowConstraints> |
|
26 |
|
<children> |
|
27 |
|
<Label text="Anzahl Städte" /> |
|
28 |
|
<TextField GridPane.columnIndex="1" /> |
|
29 |
|
</children> |
|
30 |
|
</GridPane> |
|
31 |
|
</children> |
|
32 |
|
</AnchorPane> |
|
33 |
|
<GridPane layoutX="10.0" layoutY="451.0" maxWidth="220.0" minWidth="220.0" prefHeight="147.0" prefWidth="220.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"> |
|
34 |
|
<columnConstraints> |
|
35 |
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
|
36 |
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
|
37 |
|
</columnConstraints> |
|
38 |
|
<rowConstraints> |
|
39 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
40 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
41 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
42 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
43 |
|
</rowConstraints> |
|
44 |
|
<children> |
|
45 |
|
<Label text="Strecke" /> |
|
46 |
|
<Label text="kürzeste Strecke" GridPane.rowIndex="1" /> |
|
47 |
|
<Label text="Zeit" GridPane.rowIndex="2" /> |
|
48 |
|
<Label text="Label" GridPane.columnIndex="1" /> |
|
49 |
|
<Label text="Label" GridPane.columnIndex="1" GridPane.rowIndex="1" /> |
|
50 |
|
<Label text="Label" GridPane.columnIndex="1" GridPane.rowIndex="2" /> |
|
51 |
|
</children> |
|
52 |
|
</GridPane> |
|
53 |
|
</children> |
|
54 |
|
</AnchorPane> |
|
55 |
|
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0"> |
|
56 |
|
<children> |
|
57 |
|
<Pane layoutX="207.0" layoutY="88.0" prefHeight="598.0" prefWidth="770.0" style="-fx-background-color: #FFFFFF;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" /> |
|
58 |
|
</children></AnchorPane> |
|
59 |
|
</items> |
|
60 |
|
</SplitPane> |
File src/salesman/ui/MenuBrutForce.fxml added (mode: 100644) (index 0000000..42e521a) |
|
1 |
|
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
|
3 |
|
<?import javafx.geometry.Insets?> |
|
4 |
|
<?import javafx.scene.control.Button?> |
|
5 |
|
<?import javafx.scene.layout.ColumnConstraints?> |
|
6 |
|
<?import javafx.scene.layout.GridPane?> |
|
7 |
|
<?import javafx.scene.layout.RowConstraints?> |
|
8 |
|
|
|
9 |
|
<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="255.0" prefWidth="220.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.141"> |
|
10 |
|
<columnConstraints> |
|
11 |
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
|
12 |
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
|
13 |
|
</columnConstraints> |
|
14 |
|
<rowConstraints> |
|
15 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
16 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
17 |
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
|
18 |
|
</rowConstraints> |
|
19 |
|
<children> |
|
20 |
|
<Button mnemonicParsing="false" text="Start" /> |
|
21 |
|
</children> |
|
22 |
|
<padding> |
|
23 |
|
<Insets left="5.0" /> |
|
24 |
|
</padding> |
|
25 |
|
</GridPane> |
File src/salesman/ui/UILoader.java changed (mode: 100644) (index 5ff636f..b39e9eb) |
1 |
1 |
package salesman.ui; |
package salesman.ui; |
2 |
2 |
|
|
3 |
|
public class UILoader { |
|
|
3 |
|
import javafx.application.Application; |
|
4 |
|
import javafx.fxml.FXMLLoader; |
|
5 |
|
import javafx.scene.Parent; |
|
6 |
|
import javafx.scene.Scene; |
|
7 |
|
import javafx.stage.Stage; |
|
8 |
|
|
|
9 |
|
public class UILoader extends Application { |
|
10 |
|
@Override |
|
11 |
|
public void start(Stage primaryStage) throws Exception { |
|
12 |
|
Parent root = FXMLLoader.load(getClass().getResource("MainWindow.fxml")); |
|
13 |
|
Scene scene = new Scene(root); |
|
14 |
|
primaryStage.setScene(scene); |
|
15 |
|
primaryStage.show(); |
|
16 |
|
} |
4 |
17 |
} |
} |