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

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

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

JFrame.processWindowEvent介绍

暂无

代码示例

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

@Override
  protected void processWindowEvent(WindowEvent e) {
    try {
      super.processWindowEvent(e);
    } catch (ClosedManageException ex) {
      // no op
    }
  }
};

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

javax.swing.JFrame.processWindowEvent(WindowEvent)

代码示例来源:origin: org.apache.poi/poi-contrib

protected void processWindowEvent(WindowEvent e) {
 super.processWindowEvent(e);
 if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  System.exit(0);
 }
}
public synchronized void setTitle(String title) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/** Overridden to stop the application on a closing window. */
protected void processWindowEvent(WindowEvent e) {
 super.processWindowEvent(e);
 if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  System.exit(0);
 }
}

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

/** Overridden to stop the application on a closing window. */
protected void processWindowEvent(WindowEvent e) {
 super.processWindowEvent(e);
 if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  System.exit(0);
 }
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/** Overridden to stop the application on a closing window. */
protected void processWindowEvent(WindowEvent e) {
 super.processWindowEvent(e);
 if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  System.exit(0);
 }
}

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

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

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

protected void processWindowEvent(WindowEvent e) {
 super.processWindowEvent(e);
 if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  System.exit(0);
 }
}
public synchronized void setTitle(String title) {

代码示例来源:origin: org.apache.bcel/bcel

/** Overridden to stop the application on a closing window. */
@Override
protected void processWindowEvent( final WindowEvent e ) {
  super.processWindowEvent(e);
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
  }
}

代码示例来源:origin: org.apache.poi/poi-examples

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

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

protected void close(WindowEvent windowEvent) {
  restoreOwner();
  super.processWindowEvent(windowEvent);
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

protected void tryToDispose(WindowEvent windowEvent) {
  dispose();
  super.processWindowEvent(windowEvent);
}

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

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

代码示例来源:origin: org.codehaus.castor/castor-jdo

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

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

protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
  // for some reason don't get into dispose when X'ing?
  informListeners();
}
}

代码示例来源: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: Pragmatists/tdd-trainings

/***********************
 * processWindowEvent() processes the close window event
 * 
 * @param e
 *            The window event to process
 * 
 **/
protected void processWindowEvent(java.awt.event.WindowEvent e) {
  if (e.getID() == java.awt.event.WindowEvent.WINDOW_CLOSING) {
    theApp.KillServer();
  }
  super.processWindowEvent(e);
}

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

/***********************
 * processWindowEvent() processes the close window event
 * 
 * @param e
 *            The window event to process
 * 
 **/
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    dispose();
  }
  super.processWindowEvent(e);
}

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

/***********************
 * processWindowEvent() processes the close window event
 * 
 * @param e
 *            The window event to process
 * 
 **/
protected void processWindowEvent(WindowEvent e) {
  if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    theStartApp.KillServer();
    theStartApp.closeLogFile();
    System.exit(0);
  }
  super.processWindowEvent(e);
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

protected void processWindowEvent(WindowEvent windowEvent) {
  switch (windowEvent.getID()) {
    case WindowEvent.WINDOW_CLOSING:
      tryToDispose(windowEvent);
      break;
    case WindowEvent.WINDOW_CLOSED:
      close(windowEvent);
      break;
    default:
      super.processWindowEvent(windowEvent);
      break;
  }
}

相关文章

JFrame类方法