本文整理了Java中javax.swing.JWindow.getOwner()
方法的一些代码示例,展示了JWindow.getOwner()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JWindow.getOwner()
方法的具体详情如下:
包路径:javax.swing.JWindow
类名称:JWindow
方法名:getOwner
暂无
代码示例来源:origin: org.jvnet.hudson/netx
/**
* Creates a JNLP SecurityManager.
*/
JNLPSecurityManager() {
// this has the side-effect of creating the Swing shared Frame
// owner. Since no application is running at this time, it is
// not added to any window list when checkTopLevelWindow is
// called for it (and not disposed).
if (!JNLPRuntime.isHeadless())
new JWindow().getOwner();
}
代码示例来源: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: org.fudaa.framework.ctulu/ctulu-bu
public void run() {
try {
HELPER.addNotify();
} catch (AbstractMethodError ex) {} // 1.6?
if (DEBUG) FuLog.trace("BLB: JRE is " + FuLib.jdk() + " " + FuLib.getSystemProperty("java.vm.vendor"));
if (swing() >= 1.2) {
Window w = new JWindow().getOwner();
if (w instanceof Frame) ((Frame) w).setTitle("Swing Shared Owner Frame");
}
}
});
代码示例来源:origin: com.eas.platypus/platypus-js-calendar-widget
if ((_calendarWindow == null) || (ancestor != _calendarWindow.getOwner())) {
if (ancestor instanceof JDialog) {
createCalendarWindow(ancestor);
内容来源于网络,如有侵权,请联系作者删除!