Example usage for javafx.scene.effect DropShadow DropShadow

List of usage examples for javafx.scene.effect DropShadow DropShadow

Introduction

In this page you can find the example usage for javafx.scene.effect DropShadow DropShadow.

Prototype

public DropShadow(double radius, double offsetX, double offsetY, Color color) 

Source Link

Document

Creates a new instance of DropShadow with the specified radius, offsetX, offsetY and color.

Usage

From source file:Pages.LandingPage.java

public void createView() {

    card = new giantCard(400, 500);
    card.createCard();//  w ww .j  a  v  a2  s.co m
    card.setEffect(new DropShadow(10d, 5d, 0d, Color.web("#212121")));
    card.setStyle("-fx-background-color:#FFFFFF; -fx-background-radius:1em");
    card.relocate(150, 100);
    card.getChildren().add(background);
    card.getChildren().add(tabPane);
    card.getChildren().add(icon);
    card.getChildren().add(save_icon);
    page.getChildren().add(card);
}