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

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

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

JDialog.isModal介绍

暂无

代码示例

代码示例来源:origin: protegeproject/protege

/**
 * Returns the modality of the dialog.
 * @return A boolean indicating whether or not the generated javax.swing.JDialog is modal.
 */
public boolean isModal() {
  return wizardDialog.isModal();
}

代码示例来源:origin: org.protege/protege-editor-core-application

/**
 * Returns the modality of the dialog.
 * @return A boolean indicating whether or not the generated javax.swing.JDialog is modal.
 */
public boolean isModal() {
  return wizardDialog.isModal();
}

代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application

/**
 * Returns the modality of the dialog.
 * @return A boolean indicating whether or not the generated javax.swing.JDialog is modal.
 */
public boolean isModal() {
  return wizardDialog.isModal();
}

代码示例来源:origin: com.synaptix/SynaptixSwing

public static boolean isWindowModal(Window window) {
  if (window instanceof JDialog) {
    return ((JDialog) window).isModal();
  }
  return false;
}

代码示例来源:origin: org.n52.wps/52n-wps-install-wizard

/**
 * Returns the modality of the dialog.
 * @return A boolean indicating whether or not the generated javax.swing.JDialog is modal.
 */    
public boolean isModal() {
  return wizardDialog.isModal();
}

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

public boolean isModal() {
 return dialog.isModal();
}

代码示例来源:origin: net.sf.doolin/doolin-gui

@Override
public boolean isModal() {
  return getWindow().isModal();
}

代码示例来源:origin: stackoverflow.com

jFrame.addWindowListener(new WindowAdapter() {
   @Override
   public void windowDeactivated(WindowEvent e) {
     if(e.getOppositeWindow() instanceof JDialog) {
       JDialog dialog = (JDialog) e.getOppositeWindow();
       if(dialog.isModal()) {
         // do stuff
       }
     }
   }
 });

代码示例来源:origin: senbox-org/snap-desktop

@Override
protected void onApply() {
  super.onApply();
  if (targetProduct != null && getJDialog().isModal()) {
    close();
  }
}

代码示例来源:origin: info.aduna.commons/aduna-commons-swing

if (dialog == null || modal != dialog.isModal() || (modal && owner != dialog.getOwner())) {

代码示例来源:origin: antlr/antlrworks

if(dialog.isModal())
  dialog.toFront();

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

@Override
public void actionPerformed(ActionEvent e) {
  if(tip == null || insideComponent == null){
    return;
  }
  final KeyboardFocusManager currentKeyboardFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
  final Window activeWindow = currentKeyboardFocusManager.getActiveWindow();
  if(activeWindow instanceof JDialog && ((JDialog) activeWindow).isModal()
      && ! SwingUtilities.isDescendingFrom(Controller.getCurrentController().getMapViewManager().getMapViewComponent(), activeWindow)){
    hideTipWindow();
    return;
  }
  if(isMouseOverTip() || isMouseOverComponent()){
    exitTimer.restart();
    return;
  }
  final Component focusOwner = currentKeyboardFocusManager.getFocusOwner();
  if(focusOwner != null){
    if(SwingUtilities.isDescendingFrom(focusOwner, tip)){
      exitTimer.restart();
      return;
    }
  }
  hideTipWindow();
}

相关文章

JDialog类方法