List of usage examples for javafx.scene.effect DropShadow DropShadow
public DropShadow(double radius, double offsetX, double offsetY, Color color)
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); }