/** * Returns the Scena that this Node is on. * * @return Scene */ @Override public Scene getScene() { Node<?> parent = getParent(); // change, no iteration, no testing, no casting, recurses upwards to a Scene, and Scene returns itself, CYCLES!!! if (null != parent) { return parent.getScene(); } return null; }