javax.swing.JDialog.hide()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中javax.swing.JDialog.hide()方法的一些代码示例,展示了JDialog.hide()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.hide()方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:hide

JDialog.hide介绍

暂无

代码示例

代码示例来源:origin: org.fudaa.framework.ebli/ebli-common

public void hide() {
 if (!closable_) {
  return;
 }
 super.hide();
}

代码示例来源:origin: ontopia/ontopia

@Override
 public void finished() {
  dialog.hide();
 }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

public void actionPerformed(ActionEvent evt) {
    Object o = evt.getSource();
    Object[] option = dlg.getOptions();
    
    if (o == option[0]) {
      // Set the selected Font Familt
      dialog.hide();
      // Dismiss the dialog
      dialog.hide();
    }
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

public void actionPerformed(ActionEvent evt) {
    Object o = evt.getSource();
    Object[] option = dlg.getOptions();
    
    if (o == option[0]) {
      // Dismiss the dialog
      dialog.hide();
    }else if (o == option[1]) {
      cancelled = true;
    }
  }
};

代码示例来源:origin: pentaho/pentaho-reporting

@SuppressWarnings( "deprecation" )
public void hide() {
 // called from dispose() ...
 dialogSizeSettings.put( getDialogId(), getBounds() );
 super.hide();
}

代码示例来源:origin: javax.help/javahelp

public void windowClosing(WindowEvent e) {
debug ("modal window closing");
if (destroyOnExit) {
  destroy();
  return;
}
// JDK1.2.1 bug not closing owned windows
if (dialog.isShowing()) {
  dialog.hide();
}
if (ownerWindow != null)
  ownerWindow.removeWindowListener(dl);
ownerWindow = null;
modalDeactivated = true;
}

代码示例来源:origin: javax.help/javahelp

dialog.show();
} else {
dialog.hide();

代码示例来源:origin: javax.help/javahelp

} else {
location = getLocation();
dialog.hide();
dialog = null;
createHelpWindow();

代码示例来源:origin: javax.help/javahelp

dialog.getContentPane().add(jhelp);
if (tmpDialog != null) {
  tmpDialog.hide();
  tmpDialog = null;
dialog.hide();
dialog = null;
ownerWindow = null;

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@SuppressWarnings("deprecation")
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()) {
    Component blockingComponent = rp.getGlassPane();
    blockingComponent.setVisible(false);
    if (ownersGlassPane != null) {
      rp.setGlassPane(ownersGlassPane);
      ownersGlassPane = null;
    }
  }
  super.hide();
}

相关文章

JDialog类方法