Skip to content
Snippets Groups Projects
Commit ed941fb4 authored by Eirik Martin Danielsen's avatar Eirik Martin Danielsen :speech_balloon:
Browse files

access to text

parent bac05bfe
No related branches found
No related tags found
1 merge request!10Resolve "Display List /w thought constructor"
......@@ -22,11 +22,14 @@ public class Main extends Application {
primaryStage.setTitle("Hurl your thoughts");
Scene sceneMain = new Scene(root, 700, 498);
primaryStage.setScene(sceneMain);
//get access to the text field:
ScrollPane scrollyPlane = (ScrollPane) sceneMain.lookup("#scrollyboi");
Node content = scrollyPlane.getContent();
Text ta = (Text) content.lookup("#thoughtId");
ta.setText("javBruh");
ta.setText("testing");
ThoughtManager tm = new ThoughtManager();
tm.makeList();
......
......@@ -13,7 +13,7 @@
<Text id="thoughtField" layoutX="65.0" layoutY="31.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Your thoughts" />
<ScrollPane id="scrollyboi" layoutX="1.0" layoutY="40.0" prefHeight="258.0" prefWidth="700.0">
<content>
<Text id="thoughtId" strokeType="OUTSIDE" strokeWidth="0.0" wrappingWidth="33.22460746765137" text="Text" />
<Text id="thoughtId" strokeType="OUTSIDE" strokeWidth="20.0" wrappingWidth="33.22460746765137" text="Text" />
</content>
</ScrollPane>
</children>
......
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