本文整理了Java中javax.swing.JDialog.processWindowEvent()
方法的一些代码示例,展示了JDialog.processWindowEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.processWindowEvent()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!