Skip to main content
summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTom Schindl2014-12-27 10:19:40 -0500
committerTom Schindl2014-12-27 10:19:40 -0500
commit6ce17ac643d39add40f0583a0d11362416b692a8 (patch)
treeda45c699b8ae8bf84582eeb5bed9f01089a40a41 /demos
parent3eb21c1491be59cb23439ecd911a0b93a93e19e6 (diff)
downloadorg.eclipse.efxclipse-6ce17ac643d39add40f0583a0d11362416b692a8.tar.gz
org.eclipse.efxclipse-6ce17ac643d39add40f0583a0d11362416b692a8.tar.xz
org.eclipse.efxclipse-6ce17ac643d39add40f0583a0d11362416b692a8.zip
Bug 452812 - Add a StyledString API
Diffstat (limited to 'demos')
-rw-r--r--demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/StyledTextSample.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/StyledTextSample.java b/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/StyledTextSample.java
index 7c9dd7c8f..7821b577e 100644
--- a/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/StyledTextSample.java
+++ b/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/StyledTextSample.java
@@ -17,13 +17,9 @@ public class StyledTextSample extends Application {
t.getStylesheets().add(getClass().getResource("test.css").toExternalForm());
t.getContent().setText("This is a styled text!\nThis is the 2nd line with data\nBlaBla");
t.setStyleRanges(
- new StyleRange[] {
- new StyleRange("text-highlight",0,30,null,null)
- ,
- new StyleRange("text-highlight",34,5,null,null)
-// ,
-// new StyleRange("text-highlight",10,12,null,null)
- });
+ new StyleRange("text-highlight",0,30,null,null)
+ , new StyleRange("text-highlight",34,5,null,null)
+ );
p.setCenter(t);
Scene scene = new Scene(p,800,600);

Back to the top