Skip to content

Commit

Permalink
Improved layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tainfante committed Jan 22, 2018
1 parent 86bdf48 commit 5078b07
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 46 deletions.
68 changes: 31 additions & 37 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified out/production/KCC_App/sample/Main.class
Binary file not shown.
8 changes: 4 additions & 4 deletions out/production/KCC_App/sample/sample.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>

<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="275.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="275.0" prefWidth="325.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<center>
<TextArea fx:id="log" prefHeight="294.0" prefWidth="550.0" BorderPane.alignment="CENTER" />
</center>
<bottom>
<HBox prefHeight="4.0" prefWidth="600.0" BorderPane.alignment="CENTER">
<children>
<Button fx:id="openBtn" mnemonicParsing="false" onAction="#onOpen" prefHeight="31.0" prefWidth="47.0" text="OPEN">
<Button fx:id="openBtn" mnemonicParsing="false" onAction="#onOpen" prefHeight="25.0" prefWidth="66.0" text="OPEN">
<HBox.margin>
<Insets bottom="10.0" left="10.0" top="10.0" />
</HBox.margin>
Expand All @@ -38,7 +38,7 @@
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Button>
<VBox prefHeight="47.0" prefWidth="83.0">
<VBox prefHeight="52.0" prefWidth="108.0">
<children>
<Label alignment="CENTER" prefHeight="17.0" prefWidth="150.0" text="COM port:" textAlignment="CENTER">
<VBox.margin>
Expand All @@ -63,7 +63,7 @@
<Insets top="5.0" />
</opaqueInsets>
</Label>
<Label fx:id="label" text="Click the START button to open the port and start receiving data">
<Label fx:id="label" text="Click the OPEN button to open the port and START to receive data">
<font>
<Font size="10.0" />
</font></Label>
Expand Down
2 changes: 1 addition & 1 deletion src/sample/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Main extends Application {
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Time to Digital Converter");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.setScene(new Scene(root, 325, 275));
primaryStage.show();
}

Expand Down
8 changes: 4 additions & 4 deletions src/sample/sample.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>

<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="275.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="275.0" prefWidth="325.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<center>
<TextArea fx:id="log" prefHeight="294.0" prefWidth="550.0" BorderPane.alignment="CENTER" />
</center>
<bottom>
<HBox prefHeight="4.0" prefWidth="600.0" BorderPane.alignment="CENTER">
<children>
<Button fx:id="openBtn" mnemonicParsing="false" onAction="#onOpen" prefHeight="31.0" prefWidth="47.0" text="OPEN">
<Button fx:id="openBtn" mnemonicParsing="false" onAction="#onOpen" prefHeight="25.0" prefWidth="66.0" text="OPEN">
<HBox.margin>
<Insets bottom="10.0" left="10.0" top="10.0" />
</HBox.margin>
Expand All @@ -38,7 +38,7 @@
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Button>
<VBox prefHeight="47.0" prefWidth="83.0">
<VBox prefHeight="52.0" prefWidth="108.0">
<children>
<Label alignment="CENTER" prefHeight="17.0" prefWidth="150.0" text="COM port:" textAlignment="CENTER">
<VBox.margin>
Expand All @@ -63,7 +63,7 @@
<Insets top="5.0" />
</opaqueInsets>
</Label>
<Label fx:id="label" text="Click the START button to open the port and start receiving data">
<Label fx:id="label" text="Click the OPEN button to open the port and START to receive data">
<font>
<Font size="10.0" />
</font></Label>
Expand Down

0 comments on commit 5078b07

Please sign in to comment.