I have two layers (= AnchorPanes) stacked one of the other with a StackPane. So both layer fill the whole scene. The problem is, that only the top layer receives mouse event
This cant work becouse the Event is catched by LayerB. You can set LayerB to MouseTransparent
layerB.setMouseTransparent(true)
But im not sure that button b is mousetranparent too after this.
Just give it a try, ohterwise do you thoughts about a different layout.