コード例 #1
0
ファイル: ProgressBar.java プロジェクト: mingcheong/RollPrj
 /** Hide. */
 public void hide() {
   if (prgTimer != null) {
     prgTimer.cancel();
   }
   progressBar.setValue(100);
   dialog.hide(); // setVisible(false);
 }
コード例 #2
0
ファイル: JSheet.java プロジェクト: karlvr/Quaqua
 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();
 }
コード例 #3
0
 @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);
   }
 }
コード例 #4
0
 /**
  * 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);
   }
 }