本文整理了Java中javax.swing.JWindow.removeWindowFocusListener()
方法的一些代码示例,展示了JWindow.removeWindowFocusListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JWindow.removeWindowFocusListener()
方法的具体详情如下:
包路径:javax.swing.JWindow
类名称:JWindow
方法名:removeWindowFocusListener
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
/**
* Closes the window
*/
void shutdown() {
Toolkit.getDefaultToolkit().removeAWTEventListener(this);
if (contentWindow != null) {
contentWindow.getOwner().removeWindowFocusListener(this);
contentWindow.removeWindowFocusListener(this);
contentWindow.dispose();
}
contentWindow = null;
}
代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker
/**
* hide, This hides the popup window. This removes this class from the list of window focus
* listeners for the popup window, and removes this class from the list of window movement
* listeners for the top window. This can be called internally or externally. If this is called
* multiple times, then only the first call will have an effect.
*/
@Override
public void hide() {
if (displayWindow != null) {
displayWindow.setVisible(false);
displayWindow.removeWindowFocusListener(this);
displayWindow = null;
}
if (topWindow != null) {
topWindow.removeComponentListener(this);
topWindow = null;
}
if (optionalCustomPopupCloseListener != null) {
optionalCustomPopupCloseListener.zEventCustomPopupWasClosed(this);
optionalCustomPopupCloseListener = null;
}
}
内容来源于网络,如有侵权,请联系作者删除!