From 94d084fd52251f9153e4c86e52217e868b23994c Mon Sep 17 00:00:00 2001 From: Jan <janschubert93@web.de> Date: Fri, 29 Nov 2019 12:32:34 +0100 Subject: [PATCH] Gui Anpassung --- src/main/java/enigma/GuiController.java | 116 +-- src/main/resources/enigma/gui.fxml | 838 ++++++++++++++-------- src/main/resources/enigma/kenngruppe.fxml | 12 +- 3 files changed, 596 insertions(+), 370 deletions(-) diff --git a/src/main/java/enigma/GuiController.java b/src/main/java/enigma/GuiController.java index c3567bc..2c0e6e3 100644 --- a/src/main/java/enigma/GuiController.java +++ b/src/main/java/enigma/GuiController.java @@ -321,10 +321,10 @@ public class GuiController { @FXML void initialize() { - // Variablen setzen - textEingabe = ""; - textCodiert = ""; - resetDisplay = true; + // Variablen setzen + textEingabe = ""; + textCodiert = ""; + resetDisplay = true; //Einträge für Walzen menu(mBtnWalzPos1, walzenNr); @@ -371,16 +371,16 @@ public class GuiController { leuchten(btnZ, circZ); this.codierer = new Codierer(); - this.codierer.setKenngruppe("enigma"); + this.codierer.setKenngruppe("enigma"); - // Walzen auf ihre Position setzen. Der Spruchschlüssel ist hier bereits berücksichtigt. - mBtnStartPos1.setText(String.valueOf(this.codierer.getWalzen()[0])); - mBtnStartPos2.setText(String.valueOf(this.codierer.getWalzen()[1])); - mBtnStartPos3.setText(String.valueOf(this.codierer.getWalzen()[2])); + // Walzen auf ihre Position setzen. Der Spruchschlüssel ist hier bereits berücksichtigt. + mBtnStartPos1.setText(String.valueOf(this.codierer.getWalzen()[0])); + mBtnStartPos2.setText(String.valueOf(this.codierer.getWalzen()[1])); + mBtnStartPos3.setText(String.valueOf(this.codierer.getWalzen()[2])); } @FXML - void löschen() { + private void loeschen() { if (textEingabe.length()==0){ tfKlartext.setText(""); }else { @@ -391,16 +391,16 @@ public class GuiController { @FXML void btnempfangen() { - String[] empfangeneNachricht = this.codierer.empfangeNachricht(); + String[] empfangeneNachricht = this.codierer.empfangeNachricht(); if (empfangeneNachricht[0] != null) { - this.tfKlartext.setText(empfangeneNachricht[2]); - this.tfCodiert.setText(empfangeneNachricht[1]); - this.resetDisplay = true; - - mBtnStartPos1.setText(String.valueOf(this.codierer.getWalzen()[0])); - mBtnStartPos2.setText(String.valueOf(this.codierer.getWalzen()[1])); - mBtnStartPos3.setText(String.valueOf(this.codierer.getWalzen()[2])); - } + this.tfKlartext.setText(empfangeneNachricht[2]); + this.tfCodiert.setText(empfangeneNachricht[1]); + this.resetDisplay = true; + + mBtnStartPos1.setText(String.valueOf(this.codierer.getWalzen()[0])); + mBtnStartPos2.setText(String.valueOf(this.codierer.getWalzen()[1])); + mBtnStartPos3.setText(String.valueOf(this.codierer.getWalzen()[2])); + } } @FXML @@ -423,7 +423,18 @@ public class GuiController { * @param mi : MenuItem */ private void listener(MenuButton mb, MenuItem mi) { - mb.setText(mi.getText()); + // mb.setText(mi.getText()); + + if(mb.getId().equals(mBtnStartPos1.getId()))setzePosition(1,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnStartPos2.getId()))setzePosition(2,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnStartPos3.getId()))setzePosition(3,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnWalzPos1.getId()))setzeWalze(1,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnWalzPos2.getId()))setzeWalze(2,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnWalzPos3.getId()))setzeWalze(3,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnNotchPos1.getId()))setzeRing(1,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnNotchPos2.getId()))setzeRing(2,mi.getText().charAt(0)); + if(mb.getId().equals(mBtnNotchPos3.getId()))setzeRing(3,mi.getText().charAt(0)); + } /** @@ -441,9 +452,7 @@ public class GuiController { int finalI = i; //Listener für die einzelnen Einträge ArrayList<MenuItem> finalMi = mItem; - mItem.get(i).setOnAction(e -> { - listener(button, finalMi.get(finalI)); - }); + mItem.get(i).setOnAction(e -> listener(button, finalMi.get(finalI))); } } @@ -491,34 +500,31 @@ public class GuiController { */ private void setText(Button b) { if (textEingabe.length() < 250) { - if(this.resetDisplay) { - this.tfCodiert.setText(""); - this.tfKlartext.setText(""); - this.resetDisplay = false; - this.codierer.resetHardware(); - textCodiert = ""; - textEingabe = ""; - // Spruchschlüssel generieren und codieren - this.codierer.generateSpruchschluessel(); - } - textEingabe += b.getText(); - textCodiert += this.codierer.codiere(b.getText().charAt(0), true); + if(this.resetDisplay) { + this.tfCodiert.setText(""); + this.tfKlartext.setText(""); + this.resetDisplay = false; + this.codierer.resetHardware(); + textCodiert = ""; + textEingabe = ""; + // Spruchschlüssel generieren und codieren + this.codierer.generateSpruchschluessel(); + } + textEingabe += b.getText(); + textCodiert += this.codierer.codiere(b.getText().charAt(0), true); tfKlartext.setText(textEingabe); tfCodiert.setText(textCodiert); mBtnStartPos1.setText(String.valueOf(this.codierer.getWalzen()[0])); - mBtnStartPos2.setText(String.valueOf(this.codierer.getWalzen()[1])); - mBtnStartPos3.setText(String.valueOf(this.codierer.getWalzen()[2])); - } + mBtnStartPos2.setText(String.valueOf(this.codierer.getWalzen()[1])); + mBtnStartPos3.setText(String.valueOf(this.codierer.getWalzen()[2])); + } } private void leuchten(Button taste, Circle leuchte) { - taste.setOnMousePressed(mouseEvent -> { - leuchte.setStyle("-fx-fill: #FFA500"); - - }); + taste.setOnMousePressed(mouseEvent -> leuchte.setStyle("-fx-fill: #FFA500")); taste.setOnMouseReleased(mouseEvent -> { leuchte.setStyle("-fx-background-color: " + taste.getBackground()); leuchte.setStyle("-fx-border-color: #000000"); @@ -529,19 +535,21 @@ public class GuiController { * Setzt die Anzeige des entsprechende Gui-Element auf die entsprechende Walze * ->d.h. welche Walze sitzt auf welcher Position * - * @param walze => gibt die Walzennummer an (entspricht - * @param position => gibt die Position der Walze (entspricht + * @param walzeNr => gibt die Walzennummer an (entspricht + * @param walzenPosition => gibt die Position der Walze (entspricht */ - public void setzeWalze(int walze, int position) { - switch (position) { + private void setzeWalze(int walzenPosition, int walzeNr) { + switch (walzenPosition) { case 1: - mBtnWalzPos1.setText(walzenNr[position]); + mBtnWalzPos1.setText(walzenNr[walzeNr]); + //codierer.setWalze(walzeNr, walzenPosition) break; case 2: - mBtnWalzPos2.setText(walzenNr[position]); + mBtnWalzPos2.setText(walzenNr[walzeNr]); + break; case 3: - mBtnWalzPos3.setText(walzenNr[position]); + mBtnWalzPos3.setText(walzenNr[walzeNr]); break; default: break; @@ -556,7 +564,7 @@ public class GuiController { * @param walze => gibt die walze an * @param position => gibt den notch der Walze (walze) an */ - public void setzeRing(int walze, int position) { + private void setzeRing(int walze, int position) { switch (walze) { case 1: mBtnNotchPos1.setText(ringNr[position]); @@ -578,7 +586,7 @@ public class GuiController { * @param walze => gibt die walze an * @param buchstabe gibt den Startwert bzw die aktuelle Position der Walze (walze) an */ - public void setzePosition(int walze, char buchstabe) { + private void setzePosition(int walze, char buchstabe) { switch (walze) { case 1: mBtnStartPos1.setText(String.valueOf(buchstabe)); @@ -597,10 +605,10 @@ public class GuiController { /** * Setzt den aktuellen TagesSchluessel * - * @param tagesSchluessel + * @param tagesSchluessel => neuen Tagesschluessel übergeben */ public void setzeTagesSchluessel(String tagesSchluessel) { - /** + /* * TODO Benötige TestString aus der DB Codebuch * * Den Tagesschlüssel bekommst du wie folgt: @@ -617,4 +625,4 @@ public class GuiController { */ } -} \ No newline at end of file +} diff --git a/src/main/resources/enigma/gui.fxml b/src/main/resources/enigma/gui.fxml index 32d90e5..a665261 100644 --- a/src/main/resources/enigma/gui.fxml +++ b/src/main/resources/enigma/gui.fxml @@ -1,55 +1,540 @@ <?xml version="1.0" encoding="UTF-8"?> +<?import javafx.geometry.Insets?> <?import javafx.scene.control.Button?> <?import javafx.scene.control.Label?> <?import javafx.scene.control.MenuButton?> +<?import javafx.scene.control.Separator?> <?import javafx.scene.control.TextField?> <?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.ColumnConstraints?> +<?import javafx.scene.layout.GridPane?> +<?import javafx.scene.layout.RowConstraints?> +<?import javafx.scene.layout.TilePane?> +<?import javafx.scene.layout.VBox?> <?import javafx.scene.shape.Circle?> <?import javafx.scene.text.Font?> -<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="677.0" prefWidth="967.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="enigma.GuiController"> +<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="699.0" prefWidth="968.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="enigma.GuiController"> <children> - <Circle fx:id="circQ" fill="#f0f3f5" layoutX="127.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circE" fill="#f0f3f5" layoutX="315.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circR" fill="#f0f3f5" layoutX="389.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circT" fill="#f0f3f5" layoutX="480.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circZ" fill="#f0f3f5" layoutX="561.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circU" fill="#f0f3f5" layoutX="647.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circI" fill="#f0f3f5" layoutX="736.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circO" fill="#f0f3f5" layoutX="814.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circA" fill="#f0f3f5" layoutX="162.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circS" fill="#f0f3f5" layoutX="251.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circD" fill="#f0f3f5" layoutX="329.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circF" fill="#f0f3f5" layoutX="419.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circG" fill="#f0f3f5" layoutX="502.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circH" fill="#f0f3f5" layoutX="594.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circJ" fill="#f0f3f5" layoutX="674.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circK" fill="#f0f3f5" layoutX="763.0" layoutY="361.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circP" fill="#f0f3f5" layoutX="113.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circY" fill="#f0f3f5" layoutX="197.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circX" fill="#f0f3f5" layoutX="286.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circC" fill="#f0f3f5" layoutX="369.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circV" fill="#f0f3f5" layoutX="462.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circB" fill="#f0f3f5" layoutX="546.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circN" fill="#f0f3f5" layoutX="623.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circM" fill="#f0f3f5" layoutX="703.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circL" fill="#f0f3f5" layoutX="798.0" layoutY="416.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <Circle fx:id="circW" fill="#f0f3f5" layoutX="221.0" layoutY="309.0" radius="22.0" stroke="BLACK" strokeType="INSIDE" /> - <AnchorPane layoutX="109.0" layoutY="631.0" prefHeight="25.0" prefWidth="787.0"> + <GridPane layoutY="255.0" prefHeight="446.0" prefWidth="968.0" AnchorPane.bottomAnchor="-2.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="255.0"> + <columnConstraints> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" /> + </columnConstraints> + <rowConstraints> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + </rowConstraints> <children> - <TextField fx:id="tfStecker1" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker2" layoutX="80.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker3" layoutX="159.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker4" layoutX="239.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker5" layoutX="312.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker6" layoutX="392.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker7" layoutX="472.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker8" layoutX="552.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker9" layoutX="632.0" prefHeight="25.0" prefWidth="48.0" /> - <TextField fx:id="tfStecker10" layoutX="712.0" prefHeight="25.0" prefWidth="48.0" /> + <TextField fx:id="tfStecker1" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="1" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker2" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="2" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker3" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="3" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker4" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="4" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker5" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="5" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker6" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="6" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker7" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="7" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker8" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="8" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker9" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="9" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <TextField fx:id="tfStecker10" prefHeight="25.0" prefWidth="48.0" GridPane.columnIndex="10" GridPane.rowIndex="8"> + <GridPane.margin> + <Insets left="10.0" right="10.0" /> + </GridPane.margin> + </TextField> + <Button fx:id="btnM" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="M" textFill="#fffdfd" GridPane.columnIndex="9" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnN" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="N" textFill="#fffdfd" GridPane.columnIndex="8" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnB" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="B" textFill="#fffdfd" GridPane.columnIndex="7" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnV" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="V" textFill="#fffdfd" GridPane.columnIndex="6" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnC" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="C" textFill="#fffdfd" GridPane.columnIndex="5" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnX" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="X" textFill="#fffdfd" GridPane.columnIndex="4" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnY" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="Y" textFill="#fffdfd" GridPane.columnIndex="3" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnP" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="P" textFill="#fffdfd" GridPane.columnIndex="2" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnL" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="L" textFill="#fffdfd" GridPane.columnIndex="10" GridPane.rowIndex="7"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnK" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="K" textFill="#fffdfd" GridPane.columnIndex="9" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnJ" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="J" textFill="#fffdfd" GridPane.columnIndex="8" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnH" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="H" textFill="#fffdfd" GridPane.columnIndex="7" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnG" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="G" textFill="#fffdfd" GridPane.columnIndex="6" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnF" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="F" textFill="#fffdfd" GridPane.columnIndex="5" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnD" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="D" textFill="#fffdfd" GridPane.columnIndex="4" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnS" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="S" textFill="#fffdfd" GridPane.columnIndex="3" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnA" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="A" textFill="#fffdfd" GridPane.columnIndex="2" GridPane.rowIndex="6"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Button fx:id="btnO" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="O" textFill="#fffdfd" GridPane.columnIndex="10" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnI" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="I" textFill="#fffdfd" GridPane.columnIndex="9" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnU" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="U" textFill="#fffdfd" GridPane.columnIndex="8" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnZ" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="Z" textFill="#fffdfd" GridPane.columnIndex="7" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnT" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="T" textFill="#fffdfd" GridPane.columnIndex="6" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnR" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="R" textFill="#fffdfd" GridPane.columnIndex="5" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnE" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="E" textFill="#fffdfd" GridPane.columnIndex="4" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnW" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="W" textFill="#fffdfd" GridPane.columnIndex="3" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button fx:id="btnQ" minHeight="44.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="Q" textFill="#fffdfd" GridPane.columnIndex="2" GridPane.rowIndex="5"> + <font> + <Font name="System Bold" size="18.0" /> + </font> + </Button> + <Button minHeight="44.0" mnemonicParsing="false" onAction="#loeschen" prefHeight="48.0" prefWidth="51.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="<" textFill="#fffdfd" GridPane.columnIndex="10" GridPane.rowIndex="6"> + <font> + <Font size="18.0" /> + </font> + <GridPane.margin> + <Insets left="28.0" /> + </GridPane.margin> + </Button> + <Circle fx:id="circL" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="10" GridPane.rowIndex="3" /> + <Circle fx:id="circM" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="9" GridPane.rowIndex="3" /> + <Circle fx:id="circN" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="8" GridPane.rowIndex="3" /> + <Circle fx:id="circB" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="7" GridPane.rowIndex="3" /> + <Circle fx:id="circV" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="6" GridPane.rowIndex="3" /> + <Circle fx:id="circC" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="5" GridPane.rowIndex="3" /> + <Circle fx:id="circX" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="4" GridPane.rowIndex="3" /> + <Circle fx:id="circY" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="3" GridPane.rowIndex="3" /> + <Circle fx:id="circP" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="2" GridPane.rowIndex="3" /> + <Circle fx:id="circK" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="9" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circJ" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="8" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circH" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="7" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circG" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="6" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circF" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="5" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circD" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="4" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circS" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="3" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circA" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="2" GridPane.rowIndex="2"> + <GridPane.margin> + <Insets left="35.0" /> + </GridPane.margin> + </Circle> + <Circle fx:id="circO" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="10" GridPane.rowIndex="1" /> + <Circle fx:id="circI" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="9" GridPane.rowIndex="1" /> + <Circle fx:id="circU" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="8" GridPane.rowIndex="1" /> + <Circle fx:id="circZ" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="7" GridPane.rowIndex="1" /> + <Circle fx:id="circT" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="6" GridPane.rowIndex="1" /> + <Circle fx:id="circR" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="5" GridPane.rowIndex="1" /> + <Circle fx:id="circE" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="4" GridPane.rowIndex="1" /> + <Circle fx:id="circW" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="3" GridPane.rowIndex="1" /> + <Circle fx:id="circQ" fill="#f0f3f5" radius="22.0" stroke="BLACK" strokeType="INSIDE" GridPane.columnIndex="2" GridPane.rowIndex="1" /> + <Label fx:id="lblL" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="L" GridPane.columnIndex="10" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblM" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="M" GridPane.columnIndex="9" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblN" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="N" GridPane.columnIndex="8" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblB" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="B" GridPane.columnIndex="7" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblV" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="V" GridPane.columnIndex="6" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblC" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="C" GridPane.columnIndex="5" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblX" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="X" GridPane.columnIndex="4" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblY" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="Y" GridPane.columnIndex="3" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblP" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="P" GridPane.columnIndex="2" GridPane.rowIndex="3"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblK" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="K" GridPane.columnIndex="9" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblJ" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="J" GridPane.columnIndex="8" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblH" alignment="CENTER" minHeight="0.0" prefHeight="27.0" prefWidth="25.0" text="H" GridPane.columnIndex="7" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="6.0" left="50.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblG" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="G" GridPane.columnIndex="6" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblF" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="F" GridPane.columnIndex="5" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblD" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="D" GridPane.columnIndex="4" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblS" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="S" GridPane.columnIndex="3" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblA" alignment="CENTER" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="A" GridPane.columnIndex="2" GridPane.rowIndex="2"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="4.0" left="42.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblQ" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="Q" GridPane.columnIndex="2" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblW" alignment="CENTER" prefHeight="36.0" prefWidth="30.0" text="W" GridPane.columnIndex="3" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="1.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblE" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="E" textAlignment="CENTER" GridPane.columnIndex="4" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblR" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="R" textAlignment="CENTER" GridPane.columnIndex="5" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblT" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="T" textAlignment="CENTER" GridPane.columnIndex="6" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblZ" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="Z" textAlignment="CENTER" GridPane.columnIndex="7" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblU" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="U" textAlignment="CENTER" GridPane.columnIndex="8" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblI" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="I" textAlignment="CENTER" GridPane.columnIndex="9" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <Label fx:id="lblO" alignment="CENTER" prefHeight="30.0" prefWidth="30.0" text="O" textAlignment="CENTER" GridPane.columnIndex="10" GridPane.rowIndex="1"> + <font> + <Font size="23.0" /> + </font> + <GridPane.margin> + <Insets bottom="2.0" left="7.0" /> + </GridPane.margin> + </Label> + <TilePane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="5" /> </children> - </AnchorPane> + </GridPane> + <AnchorPane layoutX="233.0" layoutY="169.0" prefHeight="111.0" prefWidth="487.0" AnchorPane.leftAnchor="233.0" AnchorPane.rightAnchor="248.0" AnchorPane.topAnchor="169.0"> + <children> + <VBox layoutX="72.0" layoutY="-89.0" prefHeight="200.0" prefWidth="378.0" AnchorPane.leftAnchor="72.0"> + <children> + <TextField fx:id="tfCodiert" editable="false" prefHeight="99.0" prefWidth="377.0" /> + <Separator prefWidth="200.0" /> + <TextField fx:id="tfKlartext" editable="false" prefHeight="100.0" prefWidth="378.0" /> + </children> + </VBox> + </children></AnchorPane> <MenuButton fx:id="mBtnWalzPos1" alignment="CENTER_RIGHT" contentDisplay="CENTER" layoutX="91.0" layoutY="76.0" mnemonicParsing="false" prefHeight="25.0" prefWidth="48.0" text="I"> </MenuButton> <MenuButton fx:id="mBtnWalzPos3" alignment="CENTER_RIGHT" layoutX="208.0" layoutY="80.0" mnemonicParsing="false" prefHeight="25.0" prefWidth="48.0" text="I" textAlignment="CENTER"> @@ -96,279 +581,18 @@ </MenuButton> <MenuButton fx:id="mBtnStartPos2" alignment="CENTER_RIGHT" layoutX="152.0" layoutY="160.0" mnemonicParsing="false" prefHeight="25.0" prefWidth="48.0" text="A" textAlignment="CENTER"> </MenuButton> - <TextField fx:id="tfKlartext" editable="false" layoutX="280.0" layoutY="54.0" prefHeight="77.0" prefWidth="410.0" AnchorPane.bottomAnchor="546.0" AnchorPane.leftAnchor="280.0" AnchorPane.rightAnchor="277.0" AnchorPane.topAnchor="54.0" /> - <TextField fx:id="tfCodiert" editable="false" layoutX="280.0" layoutY="149.0" prefHeight="77.0" prefWidth="410.0" AnchorPane.bottomAnchor="451.0" AnchorPane.leftAnchor="280.0" AnchorPane.rightAnchor="277.0" AnchorPane.topAnchor="149.0" /> - <Button layoutX="730.0" layoutY="58.0" mnemonicParsing="false" onAction="#btnsenden" prefHeight="69.0" prefWidth="164.0" text="An Funker senden" AnchorPane.topAnchor="58.0" /> - <Button layoutX="730.0" layoutY="153.0" mnemonicParsing="false" onAction="#btnempfangen" prefHeight="69.0" prefWidth="164.0" text="Funkspruch empfangen" /> <MenuButton fx:id="mBtnNotchPos1" alignment="CENTER_RIGHT" layoutX="93.0" layoutY="114.0" mnemonicParsing="false" prefHeight="25.0" prefWidth="48.0" text="1" textAlignment="CENTER" /> <Label layoutX="29.0" layoutY="80.0" text="Walze" /> <Label layoutX="29.0" layoutY="127.0" text="Ringe" /> <Label layoutX="17.0" layoutY="164.0" text="Startposition" /> <Label layoutX="68.0" layoutY="226.0" prefHeight="17.0" prefWidth="172.0" text="Spruchschlüssel" /> - <Label fx:id="lblE" alignment="CENTER" layoutX="300.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="E" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblW" alignment="CENTER" layoutX="204.0" layoutY="291.0" prefHeight="36.0" prefWidth="30.0" text="W" AnchorPane.bottomAnchor="350.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblR" alignment="CENTER" layoutX="374.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="R" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblT" alignment="CENTER" layoutX="463.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="T" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblZ" alignment="CENTER" layoutX="548.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="Z" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblO" alignment="CENTER" layoutX="801.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="O" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblI" alignment="CENTER" layoutX="721.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="I" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblU" alignment="CENTER" layoutX="630.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="U" textAlignment="CENTER" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblA" alignment="CENTER" layoutX="147.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="A" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblD" alignment="CENTER" layoutX="314.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="D" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblS" alignment="CENTER" layoutX="236.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="S" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblF" alignment="CENTER" layoutX="404.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="F" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblG" alignment="CENTER" layoutX="487.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="G" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblH" alignment="CENTER" layoutX="579.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="H" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblK" alignment="CENTER" layoutX="748.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="K" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblJ" alignment="CENTER" layoutX="659.0" layoutY="346.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="J" AnchorPane.bottomAnchor="301.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblP" alignment="CENTER" layoutX="97.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="P" AnchorPane.bottomAnchor="246.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblX" alignment="CENTER" layoutX="270.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="X" AnchorPane.bottomAnchor="246.0" AnchorPane.leftAnchor="270.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblY" alignment="CENTER" layoutX="181.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="Y" AnchorPane.bottomAnchor="246.0" AnchorPane.leftAnchor="181.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblC" alignment="CENTER" layoutX="353.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="C" AnchorPane.bottomAnchor="246.0" AnchorPane.leftAnchor="353.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblV" alignment="CENTER" layoutX="443.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="V" AnchorPane.bottomAnchor="246.0" AnchorPane.leftAnchor="443.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblB" alignment="CENTER" layoutX="527.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="B" AnchorPane.bottomAnchor="246.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblL" alignment="CENTER" layoutX="782.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="L" AnchorPane.bottomAnchor="246.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblM" alignment="CENTER" layoutX="687.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="M" AnchorPane.bottomAnchor="246.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Label fx:id="lblN" alignment="CENTER" layoutX="607.0" layoutY="401.0" minHeight="0.0" prefHeight="30.0" prefWidth="30.0" text="N" AnchorPane.bottomAnchor="246.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Button fx:id="btnQ" layoutX="154.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="Q" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font></Button> - <Label fx:id="lblQ" alignment="CENTER" layoutX="112.0" layoutY="292.0" prefHeight="30.0" prefWidth="30.0" text="Q" AnchorPane.bottomAnchor="351.0"> - <font> - <Font size="23.0" /> - </font> - </Label> - <Button fx:id="btnW" layoutX="243.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="W" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnE" layoutX="306.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="E" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnR" layoutX="381.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="R" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnT" layoutX="455.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="T" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnZ" layoutX="539.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="Z" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnU" layoutX="623.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="U" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnI" layoutX="706.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="I" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnO" layoutX="791.0" layoutY="464.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="O" textFill="#fffdfd"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button layoutX="858.0" layoutY="517.0" mnemonicParsing="false" onAction="#löschen" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="<" textFill="#fffdfd"> - <font> - <Font size="18.0" /> - </font> - </Button> - <Button fx:id="btnP" layoutX="152.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="P" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0" AnchorPane.leftAnchor="152.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnY" layoutX="229.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="Y" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnX" layoutX="306.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="X" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnC" layoutX="382.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="C" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnV" layoutX="462.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="V" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnB" layoutX="539.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="B" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnN" layoutX="615.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="N" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnM" layoutX="706.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="M" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnL" layoutX="776.0" layoutY="573.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="L" textFill="#fffdfd" AnchorPane.bottomAnchor="60.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnA" layoutX="203.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="A" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnS" layoutX="284.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="S" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnD" layoutX="355.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="D" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnF" layoutX="430.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="F" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnG" layoutX="510.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="G" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnH" layoutX="590.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="H" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnJ" layoutX="670.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="J" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> - <Button fx:id="btnK" layoutX="740.0" layoutY="517.0" mnemonicParsing="false" onAction="#gedrueckteTaste" prefHeight="44.0" prefWidth="44.0" style="-fx-background-radius: 100; -fx-background-color: #0d0d0d;" text="K" textFill="#fffdfd" AnchorPane.bottomAnchor="116.0"> - <font> - <Font name="System Bold" size="18.0" /> - </font> - </Button> <Label layoutX="68.0" layoutY="205.0" prefHeight="17.0" prefWidth="172.0" text="Tagesschlüssel" /> + <VBox layoutX="753.0" layoutY="82.0" prefHeight="200.0" prefWidth="152.0" AnchorPane.rightAnchor="63.0" AnchorPane.topAnchor="82.0"> + <children> + <Button mnemonicParsing="false" onAction="#btnsenden" prefHeight="80.0" prefWidth="152.0" text="An Funker senden" /> + <Label prefHeight="40.0" prefWidth="152.0" /> + <Button mnemonicParsing="false" onAction="#btnempfangen" prefHeight="80.0" prefWidth="152.0" text="Funkspruch empfangen" /> + </children> + </VBox> </children> </AnchorPane> diff --git a/src/main/resources/enigma/kenngruppe.fxml b/src/main/resources/enigma/kenngruppe.fxml index 2494b05..3764526 100644 --- a/src/main/resources/enigma/kenngruppe.fxml +++ b/src/main/resources/enigma/kenngruppe.fxml @@ -4,17 +4,11 @@ <?import javafx.scene.control.Label?> <?import javafx.scene.control.TextField?> <?import javafx.scene.layout.AnchorPane?> -<?import javafx.scene.layout.Pane?> <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="257.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="enigma.KenngruppeController"> <children> - <Label layoutX="81.0" layoutY="29.0" text="Bitte Kenngruppe eingeben!" /> - <Button fx:id="secondaryButton" layoutX="72.0" layoutY="178.0" onAction="#switchToPrimary" text="Kenngruppe bestätigen!" /> - <Pane layoutX="14.0" layoutY="100.0" prefHeight="25.0" prefWidth="234.0"> - <children> - <TextField prefHeight="25.0" prefWidth="71.0" /> - <TextField layoutX="126.0" prefHeight="25.0" prefWidth="108.0" /> - </children> - </Pane> + <Label layoutX="81.0" layoutY="29.0" text="Bitte Kenngruppe eingeben!" AnchorPane.leftAnchor="81.0" AnchorPane.rightAnchor="70.0" AnchorPane.topAnchor="29.0" /> + <Button fx:id="secondaryButton" layoutX="72.0" layoutY="178.0" onAction="#switchToPrimary" text="Kenngruppe bestätigen!" AnchorPane.bottomAnchor="54.0" AnchorPane.leftAnchor="72.0" AnchorPane.rightAnchor="84.0" /> + <TextField layoutX="96.0" layoutY="95.0" prefHeight="25.0" prefWidth="108.0" AnchorPane.bottomAnchor="137.0" AnchorPane.leftAnchor="96.0" AnchorPane.rightAnchor="96.0" AnchorPane.topAnchor="95.0" /> </children> </AnchorPane> -- GitLab