/** Hide. */ public void hide() { if (prgTimer != null) { prgTimer.cancel(); } progressBar.setValue(100); dialog.hide(); // setVisible(false); }
protected void hide0() { JRootPane rp = null; if (getOwner() instanceof JFrame) { rp = ((JFrame) getOwner()).getRootPane(); } else if (getOwner() instanceof JDialog) { rp = ((JDialog) getOwner()).getRootPane(); } if (rp != null && !isDocumentModalitySupported() && !isExperimentalSheet()) { Component blockingComponent = rp.getGlassPane(); blockingComponent.setVisible(false); if (ownersGlassPane != null) { rp.setGlassPane(ownersGlassPane); ownersGlassPane = null; } } super.hide(); }
@Override @SuppressWarnings("deprecation") public void hide() { super.hide(); if (myFocusTrackback != null && !(myFocusTrackback.isSheduledForRestore() || myFocusTrackback.isWillBeSheduledForRestore())) { myFocusTrackback.setWillBeSheduledForRestore(); IdeFocusManager mgr = getFocusManager(); Runnable r = new Runnable() { @Override public void run() { if (myFocusTrackback != null) myFocusTrackback.restoreFocus(); myFocusTrackback = null; } }; mgr.doWhenFocusSettlesDown(r); } }
/** * Hide the dialog box, removing it from the screen. If the dialog was modal, application * interaction is unblocked. */ public void hide() { super.hide(); if (this.statusMonitored) { Status.removeStatusListener(this); } }