title: Drop-shadow in an undecorated Pane
body: <p>I'm trying to make my Pane a little bit better, visually, so, what I'm doing is: set my stage UNDECORATED (OK) and (TRYING) to add a drop-shadow effect (NOT OK).</p>
  <p>I've found some similar cases, though none work: <a href="https://stackoverflow.com/questions/8669784/creating-undecorated-stage-in-javafx-2-0">creating undecorated stage in javafx 2.0</a> and <a href="https://stackoverflow.com/questions/12183801/how-to-add-shadow-to-window-in-javafx">How to add shadow to window in JavaFX?</a>.</p>
  <p>It seems like the drop-shadow just isn't set. I can't understand why.</p>
  <p>This is what I have:</p>
  <pre><code>public static int showConfirmDialog(Window father, String title, String body, String[]      msgBtn) 
  {
      System.out.println(&quot;La vai eu&quot;);
      AnchorPane ap = createPaneWithButton(2, msgBtn,body);
      
      ap.setEffect(initDropShadow());
      Scene scene = new Scene(ap);
      
      Stage stage = new Stage();
      
      stage.setTitle(title);
      
      scene.setFill(null);
      stage.initStyle(StageStyle.TRANSPARENT);
      
      
      stage.setScene(scene);
      stage.initStyle(StageStyle.UNDECORATED);
      stage.show();
      
      return 1;
  }
  </code></pre>
  <hr />
  <pre><code>private static AnchorPane createPaneWithButton(int qtBtn, String[] msgsBtn, String body) {
      AnchorPane ap = createPane();
      HBox laneBtn = new HBox(30);
      VBox vbox = new VBox(20);
      
      BorderPane layout = new BorderPane();
      
      Button btn;
      
      for(int i = 0; i &lt; qtBtn; i++ ){
          btn = new Button();
          btn.setText(msgsBtn[i]);
          
          laneBtn.getChildren().add(btn);
      }
      
      vbox.getChildren().add(new Text(body));
      vbox.getChildren().add(laneBtn);
      
      layout.setCenter(vbox);
      
      ap.getChildren().add(layout);
      
      return ap;
  }
  </code></pre>
  <hr />
  <pre><code>private static AnchorPane createPane() {
      AnchorPane ap = new AnchorPane();
      
      ap.setLayoutX(250);
      ap.setLayoutY(50);
      
      return ap;
  }
  </code></pre>