Skip to content
Snippets Groups Projects
Commit 196f19b6 authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

Merge branch '5-constructor-for-thought-class' into 'master'

Resolve "constructor for thought class"

Closes #5

See merge request !8
parents f938db49 65829a65
No related branches found
No related tags found
1 merge request!8Resolve "constructor for thought class"
No preview for this file type
......@@ -8,12 +8,12 @@
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="498.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Button layoutX="100.0" layoutY="423.0" mnemonicParsing="false" prefHeight="35.0" prefWidth="129.0" text="Submit thought" />
<TextArea layoutX="59.0" layoutY="299.0" prefHeight="106.0" prefWidth="307.0" promptText="Write your thought here..." />
<Button id="submitButton" layoutX="100.0" layoutY="423.0" mnemonicParsing="false" prefHeight="35.0" prefWidth="129.0" text="Submit thought" />
<TextArea id="textBox" layoutX="59.0" layoutY="299.0" prefHeight="106.0" prefWidth="307.0" promptText="Write your thought here..." />
<Text layoutX="65.0" layoutY="31.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Your thoughts" />
<ScrollPane layoutX="1.0" layoutY="40.0" prefHeight="258.0" prefWidth="700.0">
<content>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="33.22460746765137" />
<Text id="thoughtId" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="33.22460746765137" />
</content>
</ScrollPane>
</children>
......
......@@ -14,6 +14,7 @@ public class Main extends Application {
primaryStage.setTitle("Hurl your thoughts");
primaryStage.setScene(new Scene(root, 700, 498));
primaryStage.show();
}
......
......@@ -3,5 +3,8 @@ package sample;
public class Thought {
private String thoughtText;
public Thought(String txt){
thoughtText = txt;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment