changeset 7604:01d4bbc663bf

[TOYS] Improve HelloText to test for line/sentence/paragraph
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Thu, 31 Jul 2014 10:17:22 -0700
parents 74252ba3f926
children ed872c81796d
files apps/toys/Hello/src/main/java/a11y/HelloText.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/apps/toys/Hello/src/main/java/a11y/HelloText.java	Thu Jul 31 04:44:29 2014 -0700
+++ b/apps/toys/Hello/src/main/java/a11y/HelloText.java	Thu Jul 31 10:17:22 2014 -0700
@@ -50,7 +50,7 @@
         text.setFont(Font.font(50));
 
         Label l1 = new Label("name");
-        TextField tf1 = new TextField("Hello Accessiblity");
+        TextField tf1 = new TextField("Hello JavaFX Accessiblity");
         l1.setLabelFor(tf1);
         HBox box1 = new HBox(10, l1, tf1);
 
@@ -60,7 +60,8 @@
         l2.setLabelFor(tf2);
         HBox box2 = new HBox(10, l2, tf2);
 
-        TextArea ta = new TextArea("TextArea can many lines.\nLine1.\nLine2 is longer.\nLine 3 is not.");
+        TextArea ta = new TextArea("TextArea can many lines.\nLine1.\nLine2 is longer very long very long and can wrap. This is sentence belongs to the paragraph.\nLine 3 is not.");
+        ta.setWrapText(true);
 
         Scene scene = new Scene(new VBox(text, box1, box2, ta), 300, 300);
 //        scene.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {