private void openSignInWindow() throws IOException { Window parent = this.scene.getWindow(); if (signInPopup == null) { signInScene = (SignIn) context.openScene(SignIn.class); signInPopup = new Popup(parent, signInScene.getScene()) { @Override protected void hideParent(Window parent) { hideDock(true); } }; ((SignIn) signInScene).setPopup(signInPopup); } signInPopup.popup(); }
@Override protected void onCleanUp() { if (updateScene != null) { updateScene.cleanUp(); } if (signInScene != null) { signInScene.cleanUp(); } if (optionsScene != null) { optionsScene.cleanUp(); } if (statusContent != null) { statusContent.cleanUp(); } cfg.sizeProperty().removeListener(sizeChangeListener); cfg.colorProperty().removeListener(colorChangeListener); cfg.topProperty().removeListener(borderChangeListener); cfg.bottomProperty().removeListener(borderChangeListener); cfg.leftProperty().removeListener(borderChangeListener); cfg.rightProperty().removeListener(borderChangeListener); }