/** * This method detaches from the {@link #embeddedView} before performing the default stop * operation. */ @Override public void stop() { if (isInitialized()) { // If the EmbeddedView exists, we should disconnect from it first so // the AwtPanelsContext does not try to update/render this // ViewAppState's scene. disposeView(embeddedView); // Continue with the default stop operation. super.stop(); } return; }