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

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

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

JDialog.processWindowEvent介绍

暂无

代码示例

代码示例来源:origin: nroduit/Weasis

@Override
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    cancel();
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: Pragmatists/tdd-trainings

protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    dispose();
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: locationtech/jts

/**Overridden so we can exit when window is closed*/
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    cancel();
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: nroduit/Weasis

@Override
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    cancel();
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: Pragmatists/tdd-trainings

protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    dispose();
    if (exiting) {
      enditol();
    }
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: org.openspml/openspml

/**Overridden so we can exit when window is closed*/
protected void processWindowEvent(WindowEvent e) {
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  cancel();
}
super.processWindowEvent(e);
}
/**Close the dialog*/

代码示例来源:origin: org.tentackle/tentackle-swing

/**
 * {@inheritDoc}
 * <p>
 * Overridden to allow FormUtilities keeping track of windows
 */
@Override
protected void processWindowEvent(WindowEvent e)  {
 FormUtilities.getInstance().processWindowEvent(e);
 super.processWindowEvent(e);
}

代码示例来源:origin: nroduit/Weasis

@Override
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    quitWithoutSaving();
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: MegaMek/megamek

@Override
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    cancel();
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: com.numdata/numdata-swing

/**
 * Clicking the 'close button' causes the {@link #doCancel()} method to be
 * called.
 *
 * @param event Window event.
 */
@Override
protected void processWindowEvent( final WindowEvent event )
{
  super.processWindowEvent( event );
  if ( event.getID() == WindowEvent.WINDOW_CLOSING )
  {
    doCancel();
  }
}

代码示例来源:origin: MegaMek/megamek

@Override
protected void processWindowEvent(WindowEvent e){
   super.processWindowEvent(e);
   if (e.getID() == WindowEvent.WINDOW_DEACTIVATED){
     GUIPreferences guip = GUIPreferences.getInstance();
     guip.setMechSelectorUnitType(comboUnitType.getSelectedIndex());
     guip.setMechSelectorWeightClass(comboWeight.getSelectedIndex());
     guip.setMechSelectorRulesLevels(Arrays.toString(lstTechLevel.getSelectedIndices()));
     guip.setMechSelectorSizeHeight(getSize().height);
     guip.setMechSelectorSizeWidth(getSize().width);
   }
 }

代码示例来源:origin: MegaMek/megamek

@Override
protected void processWindowEvent(WindowEvent e) {
  super.processWindowEvent(e);
  if (e.getID() == WindowEvent.WINDOW_DEACTIVATED) {
    GUIPreferences guip = GUIPreferences.getInstance();
    guip.setGameOptionsSizeHeight(getSize().height);
    guip.setGameOptionsSizeWidth(getSize().width);
  }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

showingFormsChanged();
  super.processWindowEvent(e);
} catch (ClosedManageException ex) {

相关文章

JDialog类方法