-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor design changes and calculating when enter key is pressed is now…
… working
- Loading branch information
Marc Hein
committed
May 3, 2017
1 parent
2583fa6
commit 637a451
Showing
4 changed files
with
45 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.*?> | ||
<?import java.lang.*?> | ||
<?import javafx.scene.layout.*?> | ||
<?import javafx.scene.layout.FlowPane?> | ||
|
||
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="200.0" prefWidth="519.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ppi.PPIController"> | ||
<children> | ||
<Button layoutX="433.0" layoutY="161.0" mnemonicParsing="false" onAction="#calculateAction" text="Berechnen" /> | ||
<Button layoutX="14.0" layoutY="161.0" mnemonicParsing="false" onAction="#clearAction" text="Zurücksetzen" /> | ||
<Label layoutX="14.0" layoutY="14.0" text="Breite des Displays (in px):" /> | ||
<Label layoutX="14.0" layoutY="50.0" text="Höhe des Displays (in px):" /> | ||
<Label layoutX="14.0" layoutY="86.0" text="Größe des Displays (in Zoll):" /> | ||
<Label layoutX="14.0" layoutY="122.0" text="Ergebnis der Berechnung (PPI):" /> | ||
<TextField fx:id="width" layoutX="195.0" layoutY="10.0" prefHeight="25.0" prefWidth="315.0" promptText="Breite" /> | ||
<TextField fx:id="height" layoutX="195.0" layoutY="46.0" prefHeight="25.0" prefWidth="315.0" promptText="Höhe" /> | ||
<TextField fx:id="size" layoutX="195.0" layoutY="82.0" prefHeight="25.0" prefWidth="315.0" promptText="Größe" /> | ||
<TextField fx:id="ergebnis" editable="false" layoutX="195.0" layoutY="118.0" prefHeight="25.0" prefWidth="315.0" promptText="Ergebnis" /> | ||
</children> | ||
</Pane> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.TextField?> | ||
<?import javafx.scene.layout.Pane?> | ||
|
||
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="199.0" prefWidth="542.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ppi.PPIController"> | ||
<children> | ||
<Button layoutX="446.0" layoutY="161.0" mnemonicParsing="false" onAction="#calculateAction" text="Berechnen" /> | ||
<Button layoutX="14.0" layoutY="161.0" mnemonicParsing="false" onAction="#clearAction" text="Zurücksetzen" /> | ||
<Label layoutX="14.0" layoutY="14.0" text="Breite des Displays (in px):" /> | ||
<Label layoutX="14.0" layoutY="50.0" text="Höhe des Displays (in px):" /> | ||
<Label layoutX="14.0" layoutY="86.0" text="Größe des Displays (in Zoll):" /> | ||
<Label layoutX="14.0" layoutY="122.0" text="Ergebnis der Berechnung (PPI):" /> | ||
<TextField fx:id="width" layoutX="215.0" layoutY="9.0" onAction="#calculateAction" prefHeight="25.0" prefWidth="315.0" promptText="Breite" /> | ||
<TextField fx:id="height" layoutX="215.0" layoutY="45.0" onAction="#calculateAction" prefHeight="25.0" prefWidth="315.0" promptText="Höhe" /> | ||
<TextField fx:id="size" layoutX="215.0" layoutY="81.0" onAction="#calculateAction" prefHeight="25.0" prefWidth="315.0" promptText="Größe" /> | ||
<TextField fx:id="ergebnis" editable="false" layoutX="215.0" layoutY="117.0" prefHeight="25.0" prefWidth="315.0" promptText="Ergebnis" /> | ||
</children> | ||
</Pane> |