Skip to content

Commit fae28ab

Browse files
authored
Merge pull request nus-cs2103-AY1920S2#14 from j-lum/fxml-indent
Change indentation in FXML samples to match AB-3
2 parents baa18a5 + 26a5013 commit fae28ab

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tutorials/javaFxTutorialPart4.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ Create the following files in `src/main/resources/view`:
4848
<?import javafx.scene.layout.VBox?>
4949

5050
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="400.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="MainWindow">
51-
<children>
52-
<TextField fx:id="userInput" layoutY="558.0" onAction="#handleUserInput" prefHeight="41.0" prefWidth="324.0" AnchorPane.bottomAnchor="1.0" />
53-
<Button fx:id="sendButton" layoutX="324.0" layoutY="558.0" mnemonicParsing="false" onAction="#handleUserInput" prefHeight="41.0" prefWidth="76.0" text="Send" />
54-
<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" hvalue="1.0" prefHeight="557.0" prefWidth="400.0" vvalue="1.0">
55-
<content>
56-
<VBox fx:id="dialogContainer" prefHeight="552.0" prefWidth="388.0" />
57-
</content>
58-
</ScrollPane>
59-
</children>
51+
<children>
52+
<TextField fx:id="userInput" layoutY="558.0" onAction="#handleUserInput" prefHeight="41.0" prefWidth="324.0" AnchorPane.bottomAnchor="1.0" />
53+
<Button fx:id="sendButton" layoutX="324.0" layoutY="558.0" mnemonicParsing="false" onAction="#handleUserInput" prefHeight="41.0" prefWidth="76.0" text="Send" />
54+
<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER" hvalue="1.0" prefHeight="557.0" prefWidth="400.0" vvalue="1.0">
55+
<content>
56+
<VBox fx:id="dialogContainer" prefHeight="552.0" prefWidth="388.0" />
57+
</content>
58+
</ScrollPane>
59+
</children>
6060
</AnchorPane>
6161
```
6262

@@ -70,13 +70,13 @@ Create the following files in `src/main/resources/view`:
7070
<?import javafx.scene.layout.HBox?>
7171

7272
<fx:root alignment="TOP_RIGHT" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefWidth="400.0" type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
73-
<children>
74-
<Label fx:id="dialog" text="Label" wrapText="true" />
75-
<ImageView fx:id="displayPicture" fitHeight="99.0" fitWidth="99.0" pickOnBounds="true" preserveRatio="true" />
76-
</children>
77-
<padding>
78-
<Insets bottom="15.0" left="5.0" right="5.0" top="15.0" />
79-
</padding>
73+
<children>
74+
<Label fx:id="dialog" text="Label" wrapText="true" />
75+
<ImageView fx:id="displayPicture" fitHeight="99.0" fitWidth="99.0" pickOnBounds="true" preserveRatio="true" />
76+
</children>
77+
<padding>
78+
<Insets bottom="15.0" left="5.0" right="5.0" top="15.0" />
79+
</padding>
8080
</fx:root>
8181
```
8282

0 commit comments

Comments
 (0)