List of usage examples for javafx.scene.paint Color LIME
Color LIME
To view the source code for javafx.scene.paint Color LIME.
Click Source Link
From source file:Main.java
@Override public void start(Stage primaryStage) { Group group = new Group(); Rectangle rect = new Rectangle(20, 20, 200, 200); StrokeTransition sT = new StrokeTransition(Duration.millis(2000), rect, Color.LIME, Color.YELLOW); sT.play();// w w w . ja v a 2 s.co m group.getChildren().add(rect); Scene scene = new Scene(group, 300, 200); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Keyboard"); Group root = new Group(); Scene scene = new Scene(root, 530, 300, Color.WHITE); final StringProperty statusProperty = new SimpleStringProperty(); InnerShadow iShadow = InnerShadowBuilder.create().offsetX(3.5f).offsetY(3.5f).build(); final Text status = TextBuilder.create().effect(iShadow).x(100).y(50).fill(Color.LIME) .font(Font.font(null, FontWeight.BOLD, 35)).translateY(50).build(); status.textProperty().bind(statusProperty); statusProperty.set("Line\nLine2\nLine"); root.getChildren().add(status);//from w w w. j a v a 2 s . co m primaryStage.setScene(scene); primaryStage.show(); }